2020-06-18 07:06:33 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, celery
|
|
|
|
, humanize
|
|
|
|
, mock
|
|
|
|
, pytz
|
|
|
|
, tornado
|
2020-08-20 17:08:02 +00:00
|
|
|
, prometheus_client
|
2020-06-18 07:06:33 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flower";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "0.9.5";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "171zckhk9ni14f1d82wf62hhciy0gx13fd02sr9m9qlj50fnv4an";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
# rely on using example programs (flowers/examples/tasks.py) which
|
|
|
|
# are not part of the distribution
|
|
|
|
rm tests/load.py
|
2021-01-05 17:05:55 +00:00
|
|
|
substituteInPlace requirements/default.txt --replace "prometheus_client==0.8.0" "prometheus_client>=0.8.0"
|
2020-08-20 17:08:02 +00:00
|
|
|
'';
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
celery
|
|
|
|
pytz
|
|
|
|
tornado
|
|
|
|
humanize
|
2020-08-20 17:08:02 +00:00
|
|
|
prometheus_client
|
2020-06-18 07:06:33 +00:00
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [ mock ];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Celery Flower";
|
|
|
|
homepage = "https://github.com/mher/flower";
|
2020-06-18 07:06:33 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.arnoldfarkas ];
|
2021-01-05 17:05:55 +00:00
|
|
|
broken = (celery.version == "5.0.2"); # currently broken with celery>=5.0 by https://github.com/mher/flower/pull/1021
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|