depot/third_party/nixpkgs/pkgs/development/python-modules/flower/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

50 lines
948 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, celery
, humanize
, pytz
, tornado
, prometheus-client
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "flower";
version = "1.2.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "46493c7e8d9ca2167e8a46eb97ae8d280997cb40a81993230124d74f0fe40bac";
};
postPatch = ''
# rely on using example programs (flowers/examples/tasks.py) which
# are not part of the distribution
rm tests/load.py
'';
propagatedBuildInputs = [
celery
humanize
prometheus-client
pytz
tornado
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"flower"
];
meta = with lib; {
description = "Real-time monitor and web admin for Celery distributed task queue";
homepage = "https://github.com/mher/flower";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ arnoldfarkas ];
};
}