mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
b38c93f803
fixes CVE-2022-30034
51 lines
942 B
Nix
51 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 ];
|
|
};
|
|
}
|