nixpkgs/pkgs/development/python-modules/flower/default.nix
Robert Schütz b38c93f803 python310Packages.flower: 1.1.0 -> 1.2.0
fixes CVE-2022-30034
2022-08-30 17:46:47 +00:00

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 ];
};
}