2020-02-24 08:14:17 +00:00
|
|
|
{ buildPythonPackage, fetchFromGitHub, isPy38
|
2017-11-20 13:00:43 +00:00
|
|
|
, flask
|
|
|
|
, gevent
|
2020-02-24 08:14:17 +00:00
|
|
|
, mock
|
|
|
|
, msgpack
|
2017-11-20 13:00:43 +00:00
|
|
|
, pyzmq
|
2020-02-24 08:14:17 +00:00
|
|
|
, requests
|
|
|
|
, unittest2
|
2017-11-20 13:00:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "locustio";
|
2020-02-24 08:14:17 +00:00
|
|
|
version = "0.14.4";
|
|
|
|
# tests hang on python38
|
|
|
|
disabled = isPy38;
|
2017-11-20 13:00:43 +00:00
|
|
|
|
2018-09-07 07:38:41 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "locustio";
|
|
|
|
repo = "locust";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2018-09-07 07:38:41 +01:00
|
|
|
sha256 = "1645d63ig4ymw716b6h53bhmjqqc13p9r95k1xfx66ck6vdqnisd";
|
2017-11-20 13:00:43 +00:00
|
|
|
};
|
|
|
|
|
2018-09-07 07:38:41 +01:00
|
|
|
propagatedBuildInputs = [ msgpack requests flask gevent pyzmq ];
|
2020-02-24 08:14:17 +00:00
|
|
|
checkInputs = [ mock unittest2 ];
|
|
|
|
# remove file which attempts to do GET request
|
|
|
|
preCheck = ''
|
|
|
|
rm locust/test/test_stats.py
|
|
|
|
'';
|
2017-11-20 13:00:43 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-02-24 08:14:17 +00:00
|
|
|
homepage = "https://locust.io/";
|
2017-11-20 13:00:43 +00:00
|
|
|
description = "A load testing tool";
|
|
|
|
};
|
|
|
|
}
|