1{ lib
2, buildPythonPackage
3, fetchPypi
4, celery
5, humanize
6, mock
7, pytz
8, tornado
9, prometheus-client
10, pytestCheckHook
11}:
12
13buildPythonPackage rec {
14 pname = "flower";
15 version = "1.0.0";
16 format = "setuptools";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "1gcczr04g7wx99h7pxxx1p9n50sbyi0zxrzy7f7m0sf5apxw85rf";
21 };
22
23 postPatch = ''
24 # rely on using example programs (flowers/examples/tasks.py) which
25 # are not part of the distribution
26 rm tests/load.py
27 '';
28
29 propagatedBuildInputs = [
30 celery
31 humanize
32 prometheus-client
33 pytz
34 tornado
35 ];
36
37 checkInputs = [
38 mock
39 pytestCheckHook
40 ];
41
42 disabledTests = [
43 # AssertionError as the celery release can't be detected
44 "test_default"
45 "test_with_app"
46 ];
47
48 pythonImportsCheck = [
49 "flower"
50 ];
51
52 meta = with lib; {
53 description = "Celery Flower";
54 homepage = "https://github.com/mher/flower";
55 license = licenses.bsdOriginal;
56 maintainers = with maintainers; [ arnoldfarkas ];
57 };
58}