2020-06-18 07:06:33 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, celery
|
|
|
|
, humanize
|
|
|
|
, mock
|
|
|
|
, pytz
|
|
|
|
, tornado
|
2021-08-27 14:25:00 +00:00
|
|
|
, prometheus-client
|
2021-08-05 21:33:18 +00:00
|
|
|
, pytestCheckHook
|
2020-06-18 07:06:33 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "flower";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "1.0.0";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-05 21:33:18 +00:00
|
|
|
sha256 = "1gcczr04g7wx99h7pxxx1p9n50sbyi0zxrzy7f7m0sf5apxw85rf";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
# rely on using example programs (flowers/examples/tasks.py) which
|
|
|
|
# are not part of the distribution
|
|
|
|
rm tests/load.py
|
|
|
|
'';
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
celery
|
|
|
|
pytz
|
|
|
|
tornado
|
|
|
|
humanize
|
2021-08-27 14:25:00 +00:00
|
|
|
prometheus-client
|
2020-06-18 07:06:33 +00:00
|
|
|
];
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
pythonImportsCheck = [ "flower" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Celery Flower";
|
|
|
|
homepage = "https://github.com/mher/flower";
|
2020-06-18 07:06:33 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2021-08-05 21:33:18 +00:00
|
|
|
maintainers = with maintainers; [ arnoldfarkas ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|