depot/third_party/nixpkgs/pkgs/development/python-modules/flower/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

61 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, celery
, humanize
, mock
, pytz
, tornado
, prometheus-client
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "flower";
version = "1.1.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-+SDKKQLXU5/BgKsV5R8dkYNV5cwj2oVP+dWcbloXJbY=";
};
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 = [
mock
pytestCheckHook
];
disabledTests = [
# AssertionError as the celery release can't be detected
"test_default"
"test_with_app"
];
pythonImportsCheck = [
"flower"
];
meta = with lib; {
description = "Celery Flower";
homepage = "https://github.com/mher/flower";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ arnoldfarkas ];
knownVulnerabilities = [
"CVE-2022-30034"
];
};
}