3
0
Fork 0
forked from mirrors/nixpkgs
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.

59 lines
1,020 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, celery
, humanize
, mock
, pytz
, tornado
, prometheus-client
2021-07-24 20:33:21 +01:00
, pytestCheckHook
}:
2020-01-22 14:14:53 +00:00
buildPythonPackage rec {
pname = "flower";
2021-07-24 20:33:21 +01:00
version = "1.0.0";
format = "setuptools";
2020-01-22 14:14:53 +00:00
src = fetchPypi {
inherit pname version;
2021-07-24 20:33:21 +01:00
sha256 = "1gcczr04g7wx99h7pxxx1p9n50sbyi0zxrzy7f7m0sf5apxw85rf";
2020-01-22 14:14:53 +00:00
};
2020-07-16 08:32:35 +01: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 20:33:21 +01: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 20:33:21 +01:00
maintainers = with maintainers; [ arnoldfarkas ];
2020-01-22 14:14:53 +00:00
};
}