2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
celery,
|
|
|
|
humanize,
|
|
|
|
pytz,
|
|
|
|
tornado,
|
|
|
|
prometheus-client,
|
|
|
|
pytestCheckHook,
|
2020-06-18 07:06:33 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flower";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "2.0.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-WrcXuXlTB3DBavtItQ0qmNI8Pp/jmFHc9rxNAYRaAqA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
# rely on using example programs (flowers/examples/tasks.py) which
|
|
|
|
# are not part of the distribution
|
|
|
|
rm tests/load.py
|
|
|
|
'';
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
celery
|
|
|
|
humanize
|
2021-08-27 14:25:00 +00:00
|
|
|
prometheus-client
|
2021-12-06 16:07:01 +00:00
|
|
|
pytz
|
|
|
|
tornado
|
2020-06-18 07:06:33 +00:00
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "flower" ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-09-09 14:08:57 +00:00
|
|
|
description = "Real-time monitor and web admin for Celery distributed task queue";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/mher/flower";
|
2020-06-18 07:06:33 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2021-08-05 21:33:18 +00:00
|
|
|
maintainers = with maintainers; [ arnoldfarkas ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|