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

50 lines
863 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, celery
, humanize
, mock
, pytz
, tornado
2020-07-16 09:32:35 +02:00
, prometheus_client
2021-07-24 21:33:21 +02:00
, pytestCheckHook
}:
2020-01-22 15:14:53 +01:00
buildPythonPackage rec {
pname = "flower";
2021-07-24 21:33:21 +02:00
version = "1.0.0";
2020-01-22 15:14:53 +01:00
src = fetchPypi {
inherit pname version;
2021-07-24 21:33:21 +02:00
sha256 = "1gcczr04g7wx99h7pxxx1p9n50sbyi0zxrzy7f7m0sf5apxw85rf";
2020-01-22 15:14:53 +01:00
};
2020-07-16 09:32:35 +02:00
postPatch = ''
# rely on using example programs (flowers/examples/tasks.py) which
# are not part of the distribution
rm tests/load.py
'';
propagatedBuildInputs = [
celery
pytz
tornado
humanize
2020-07-16 09:32:35 +02:00
prometheus_client
];
2021-07-24 21:33:21 +02:00
checkInputs = [
mock
pytestCheckHook
];
2021-03-07 03:14:35 +01:00
pythonImportsCheck = [ "flower" ];
2020-01-22 15:14:53 +01:00
meta = with lib; {
description = "Celery Flower";
homepage = "https://github.com/mher/flower";
license = licenses.bsdOriginal;
2021-07-24 21:33:21 +02:00
maintainers = with maintainers; [ arnoldfarkas ];
2020-01-22 15:14:53 +01:00
};
}