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

48 lines
1.0 KiB
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";
2021-02-20 09:09:09 +00:00
version = "0.9.7";
2020-01-22 14:14:53 +00:00
src = fetchPypi {
inherit pname version;
2021-02-20 09:09:09 +00:00
sha256 = "cf27a254268bb06fd4972408d0518237fcd847f7da4b4cd8055e228150ace8f3";
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
substituteInPlace requirements/default.txt --replace "prometheus_client==0.8.0" "prometheus_client>=0.8.0"
2020-07-16 08:32:35 +01:00
'';
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 ];
2021-03-07 02:14:35 +00:00
pythonImportsCheck = [ "flower" ];
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 ];
2021-03-07 02:14:35 +00:00
broken = (celery.version >= "5.0.2"); # currently broken with celery>=5.0 by https://github.com/mher/flower/pull/1021
2020-01-22 14:14:53 +00:00
};
}