Files
nixpkgs/pkgs/development/python-modules/flower/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

50 lines
970 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
celery,
humanize,
pytz,
tornado,
prometheus-client,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "flower";
version = "2.0.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-WrcXuXlTB3DBavtItQ0qmNI8Pp/jmFHc9rxNAYRaAqA=";
};
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
];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "flower" ];
meta = {
description = "Real-time monitor and web admin for Celery distributed task queue";
homepage = "https://github.com/mher/flower";
license = lib.licenses.bsdOriginal;
maintainers = with lib.maintainers; [ arnoldfarkas ];
};
}