about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-02-24 00:14:17 -0800
committerJon <jonringer@users.noreply.github.com>2020-02-24 00:24:40 -0800
commit193c58489ec31d58cf2bbb66ea9aeec0ef4d51a8 (patch)
treeeeeaf616741a8cc8e9856543e65ffc9fb3722251
parent6d92e54174c449b4605db34fbba78b43be6b5335 (diff)
downloadnixlib-193c58489ec31d58cf2bbb66ea9aeec0ef4d51a8.tar
nixlib-193c58489ec31d58cf2bbb66ea9aeec0ef4d51a8.tar.gz
nixlib-193c58489ec31d58cf2bbb66ea9aeec0ef4d51a8.tar.bz2
nixlib-193c58489ec31d58cf2bbb66ea9aeec0ef4d51a8.tar.lz
nixlib-193c58489ec31d58cf2bbb66ea9aeec0ef4d51a8.tar.xz
nixlib-193c58489ec31d58cf2bbb66ea9aeec0ef4d51a8.tar.zst
nixlib-193c58489ec31d58cf2bbb66ea9aeec0ef4d51a8.zip
pythonPackages.locustio: 0.9.0 -> 0.14.4
disable python3.8 version, as tests hang indefinitely
-rw-r--r--pkgs/development/python-modules/locustio/default.nix23
1 files changed, 14 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/locustio/default.nix b/pkgs/development/python-modules/locustio/default.nix
index 2203fa4c6ad0..0b64fc39feb7 100644
--- a/pkgs/development/python-modules/locustio/default.nix
+++ b/pkgs/development/python-modules/locustio/default.nix
@@ -1,17 +1,18 @@
-{ buildPythonPackage
-, fetchFromGitHub
-, mock
-, unittest2
-, msgpack
-, requests
+{ buildPythonPackage, fetchFromGitHub, isPy38
 , flask
 , gevent
+, mock
+, msgpack
 , pyzmq
+, requests
+, unittest2
 }:
 
 buildPythonPackage rec {
   pname = "locustio";
-  version = "0.9.0";
+  version = "0.14.4";
+  # tests hang on python38
+  disabled = isPy38;
 
   src = fetchFromGitHub {
     owner = "locustio";
@@ -21,10 +22,14 @@ buildPythonPackage rec {
   };
 
   propagatedBuildInputs = [ msgpack requests flask gevent pyzmq ];
-  buildInputs = [ mock unittest2 ];
+  checkInputs = [ mock unittest2 ];
+  # remove file which attempts to do GET request
+  preCheck = ''
+    rm locust/test/test_stats.py
+  '';
 
   meta = {
-    homepage = https://locust.io/;
+    homepage = "https://locust.io/";
     description = "A load testing tool";
   };
 }