fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
49 lines
974 B
Nix
49 lines
974 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
celery,
|
|
humanize,
|
|
pytz,
|
|
tornado,
|
|
prometheus-client,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flower";
|
|
version = "2.0.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-WrcXuXlTB3DBavtItQ0qmNI8Pp/jmFHc9rxNAYRaAqA=";
|
|
};
|
|
|
|
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
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|