Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 35 lines 702 B view raw
1{ buildPythonPackage, fetchFromGitHub, isPy38 2, flask 3, gevent 4, mock 5, msgpack 6, pyzmq 7, requests 8, unittest2 9}: 10 11buildPythonPackage rec { 12 pname = "locustio"; 13 version = "0.14.4"; 14 # tests hang on python38 15 disabled = isPy38; 16 17 src = fetchFromGitHub { 18 owner = "locustio"; 19 repo = "locust"; 20 rev = version; 21 sha256 = "1645d63ig4ymw716b6h53bhmjqqc13p9r95k1xfx66ck6vdqnisd"; 22 }; 23 24 propagatedBuildInputs = [ msgpack requests flask gevent pyzmq ]; 25 checkInputs = [ mock unittest2 ]; 26 # remove file which attempts to do GET request 27 preCheck = '' 28 rm locust/test/test_stats.py 29 ''; 30 31 meta = { 32 homepage = "https://locust.io/"; 33 description = "A load testing tool"; 34 }; 35}