nixpkgs/pkgs/development/python-modules/flower/default.nix

44 lines
775 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, celery
, humanize
, mock
, pytz
, tornado
2020-07-16 08:32:35 +01:00
, prometheus_client
}:
2020-01-22 14:14:53 +00:00
buildPythonPackage rec {
pname = "flower";
2020-07-16 08:32:35 +01:00
version = "0.9.5";
2020-01-22 14:14:53 +00:00
src = fetchPypi {
inherit pname version;
2020-07-16 08:32:35 +01:00
sha256 = "171zckhk9ni14f1d82wf62hhciy0gx13fd02sr9m9qlj50fnv4an";
2020-01-22 14:14:53 +00:00
};
2020-07-16 08:32:35 +01:00
postPatch = ''
# rely on using example programs (flowers/examples/tasks.py) which
# are not part of the distribution
rm tests/load.py
'';
propagatedBuildInputs = [
celery
pytz
tornado
humanize
2020-07-16 08:32:35 +01:00
prometheus_client
];
2020-01-22 14:14:53 +00:00
checkInputs = [ mock ];
2020-01-22 14:14:53 +00:00
meta = with lib; {
description = "Celery Flower";
homepage = "https://github.com/mher/flower";
license = licenses.bsdOriginal;
2020-01-22 14:14:53 +00:00
maintainers = [ maintainers.arnoldfarkas ];
};
}