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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
948 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, celery
, humanize
, pytz
, tornado
, prometheus-client
2021-07-24 19:33:21 +00:00
, pytestCheckHook
}:
2020-01-22 14:14:53 +00:00
buildPythonPackage rec {
pname = "flower";
version = "1.2.0";
format = "setuptools";
2020-01-22 14:14:53 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "46493c7e8d9ca2167e8a46eb97ae8d280997cb40a81993230124d74f0fe40bac";
2020-01-22 14:14:53 +00:00
};
2020-07-16 07:32:35 +00:00
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 = [
2021-07-24 19:33:21 +00:00
pytestCheckHook
];
pythonImportsCheck = [
"flower"
];
2021-03-07 02:14:35 +00:00
2020-01-22 14:14:53 +00:00
meta = with lib; {
description = "Real-time monitor and web admin for Celery distributed task queue";
2020-01-22 14:14:53 +00:00
homepage = "https://github.com/mher/flower";
license = licenses.bsdOriginal;
2021-07-24 19:33:21 +00:00
maintainers = with maintainers; [ arnoldfarkas ];
2020-01-22 14:14:53 +00:00
};
}