b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
50 lines
942 B
Nix
50 lines
942 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
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|