Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.8 kB · 97 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798{ lib, buildPythonPackage, python, callPackage, fetchFromGitHub, hatchling, hatch-vcs, pytestCheckHook, configargparse, cryptography, flask, flask-cors, flask-login, gevent, geventhttpclient, msgpack, psutil, pyquery, pyzmq, requests, retry, tomli, werkzeug,}:
buildPythonPackage rec { pname = "locust"; version = "2.37.14"; pyproject = true;
src = fetchFromGitHub { owner = "locustio"; repo = "locust"; tag = version; hash = "sha256-16pMl72OIZlAi6jNx0qv0TO9RTm6O9CgiE84sndsEhc="; };
postPatch = '' substituteInPlace locust/test/test_main.py \ --replace-fail '"locust"' '"${placeholder "out"}/bin/locust"'
substituteInPlace locust/test/test_log.py \ --replace-fail '"locust"' '"${placeholder "out"}/bin/locust"' '';
webui = callPackage ./webui.nix { inherit version; src = "${src}/locust/webui"; };
build-system = [ hatchling hatch-vcs ];
pythonRelaxDeps = [ # version 0.7.0.dev0 is not considered to be >= 0.6.3 "flask-login" ];
dependencies = [ configargparse flask flask-cors flask-login gevent geventhttpclient msgpack psutil pyzmq requests tomli werkzeug ];
pythonImportsCheck = [ "locust" ];
nativeCheckInputs = [ cryptography pyquery pytestCheckHook retry ];
# locust's test suite is very flaky, due to heavy reliance on timing-based tests and access to the # network. doCheck = false;
meta = { description = "Developer-friendly load testing framework"; homepage = "https://docs.locust.io/"; changelog = "https://github.com/locustio/locust/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ jokatzke ]; };}