Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 81 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ lib, buildPythonPackage, configargparse, fetchFromGitHub, gevent, hatch-vcs, hatchling, platformdirs, python-engineio, python-socketio, requests, gevent-websocket, tomli, flask, requests-mock, pytestCheckHook,}:
buildPythonPackage rec { pname = "locust-cloud"; version = "1.30.0"; pyproject = true;
src = fetchFromGitHub { owner = "locustcloud"; repo = "locust-cloud"; tag = version; hash = "sha256-GJS0+CUYMz3G98I7Edj2qEsIFTp5wzsuSMmN7DlZPjA="; };
build-system = [ hatchling hatch-vcs ];
dependencies = [ configargparse gevent platformdirs python-engineio python-socketio requests tomli ];
nativeCheckInputs = [ flask gevent-websocket pytestCheckHook requests-mock ];
pythonImportsCheck = [ "locust_cloud" ];
preCheck = '' export LOCUSTCLOUD_USERNAME=dummy export LOCUSTCLOUD_PASSWORD=dummy '';
disabledTests = [ # AssertionError "test_recursive_imports" "test_from_import_file" ];
disabledTestPaths = [ # Tests require network access "tests/web_login_test.py" "tests/cloud_test.py" "tests/websocket_test.py" ];
meta = { description = "Hosted version of Locust to run distributed load tests"; homepage = "https://github.com/locustcloud/locust-cloud"; changelog = "https://github.com/locustcloud/locust-cloud/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ magicquark ]; };}