depot/third_party/nixpkgs/pkgs/development/python-modules/flower/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

49 lines
863 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, celery
, humanize
, mock
, pytz
, tornado
, prometheus_client
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "flower";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "1gcczr04g7wx99h7pxxx1p9n50sbyi0zxrzy7f7m0sf5apxw85rf";
};
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
prometheus_client
];
checkInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "flower" ];
meta = with lib; {
description = "Celery Flower";
homepage = "https://github.com/mher/flower";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ arnoldfarkas ];
};
}