git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.locustio: 0.9.0 -> 0.14.4

disable python3.8 version, as tests hang indefinitely

commit193c58489ec31d58cf2bbb66ea9aeec0ef4d51a8 authorJonathan Ringer <jonringer117@gmail.com> dateMon 24 Feb 2020, 00:14 (7 years ago) parent6d92e54
1 file changed+14−9
pkgs/development/python-modules/locustio/default.nix+14−9
pkgs/development/python-modules/locustio/default.nix+14−9
@@ -1,17 +1,18 @@
1−{ buildPythonPackage
2−, fetchFromGitHub
3−, mock
4−, unittest2
5−, msgpack
6−, requests
1+{ buildPythonPackage, fetchFromGitHub, isPy38
72, flask
83, gevent
4+, mock
5+, msgpack
96, pyzmq
7+, requests
8+, unittest2
109}:
1110
1211buildPythonPackage rec {
1312 pname = "locustio";
14− version = "0.9.0";
13+ version = "0.14.4";
14+ # tests hang on python38
15+ disabled = isPy38;
1516
1617 src = fetchFromGitHub {
1718 owner = "locustio";
@@ -21,10 +22,14 @@ buildPythonPackage rec {
2122 };
2223
2324 propagatedBuildInputs = [ msgpack requests flask gevent pyzmq ];
24− buildInputs = [ mock unittest2 ];
25+ checkInputs = [ mock unittest2 ];
26+ # remove file which attempts to do GET request
27+ preCheck = ''
28+ rm locust/test/test_stats.py
29+ '';
2530
2631 meta = {
27− homepage = https://locust.io/;
32+ homepage = "https://locust.io/";
2833 description = "A load testing tool";
2934 };
3035}