nixpkgs/pkgs/development/python-modules/flower/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, celery
, humanize
, mock
, pytz
, tornado
, prometheus-client
2021-07-24 19:33:21 +00:00
, pytestCheckHook
}:
2020-01-22 14:14:53 +00:00
buildPythonPackage rec {
pname = "flower";
2022-07-16 10:59:07 +00:00
version = "1.1.0";
format = "setuptools";
2020-01-22 14:14:53 +00:00
src = fetchPypi {
inherit pname version;
2022-07-16 10:59:07 +00:00
sha256 = "sha256-+SDKKQLXU5/BgKsV5R8dkYNV5cwj2oVP+dWcbloXJbY=";
2020-01-22 14:14:53 +00:00
};
2020-07-16 07:32:35 +00:00
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
];
2021-07-24 19:33:21 +00:00
checkInputs = [
mock
pytestCheckHook
];
disabledTests = [
# AssertionError as the celery release can't be detected
"test_default"
"test_with_app"
];
pythonImportsCheck = [
"flower"
];
2021-03-07 02:14:35 +00:00
2020-01-22 14:14:53 +00:00
meta = with lib; {
description = "Celery Flower";
homepage = "https://github.com/mher/flower";
license = licenses.bsdOriginal;
2021-07-24 19:33:21 +00:00
maintainers = with maintainers; [ arnoldfarkas ];
knownVulnerabilities = [
"CVE-2022-30034"
];
2020-01-22 14:14:53 +00:00
};
}