1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# optional-dependencies
dill,
flask,
graphviz,
multiprocess,
regex,
requests,
sphinx,
sphinx-click,
# tests
pytestCheckHook,
ddt,
cryptography,
schedula,
}:
buildPythonPackage rec {
pname = "schedula";
version = "1.5.72";
pyproject = true;
src = fetchFromGitHub {
owner = "vinci1it2000";
repo = "schedula";
tag = "v${version}";
hash = "sha256-UfUe9Uv4y61SOEvqW5bbK891F7ysZS+jxtp1zN5JAGM=";
};
build-system = [ setuptools ];
optional-dependencies = rec {
# dev omitted, we have nativeCheckInputs for this
# form omitted, as it pulls in a kitchensink of deps, some not even packaged in nixpkgs
io = [ dill ];
parallel = [ multiprocess ];
plot = [
requests
graphviz
regex
flask
];
sphinx = [
sphinx
sphinx-click
]
++ plot;
web = [
requests
regex
flask
];
};
nativeCheckInputs = [
cryptography # doctests
ddt
sphinx
pytestCheckHook
]
++ schedula.optional-dependencies.io
++ schedula.optional-dependencies.parallel
++ schedula.optional-dependencies.plot;
disabledTests = [
# FAILED tests/test_setup.py::TestSetup::test_long_description - ModuleNotFoundError: No module named 'sphinxcontrib.writers'
"test_long_description"
];
disabledTestPaths = [
# ERROR tests/utils/test_form.py::TestDispatcherForm::test_form1 - ModuleNotFoundError: No module named 'chromedriver_autoinstaller'
# ERROR tests/utils/test_form.py::TestDispatcherForm::test_form_stripe - ModuleNotFoundError: No module named 'chromedriver_autoinstaller'
"tests/utils/test_form.py"
];
pythonImportsCheck = [ "schedula" ];
meta = {
description = "Smart function scheduler for dynamic flow-based programming";
homepage = "https://github.com/vinci1it2000/schedula";
changelog = "https://github.com/vinci1it2000/schedula/blob/v${version}/CHANGELOG.rst";
license = lib.licenses.eupl11;
maintainers = with lib.maintainers; [ flokli ];
# at least some tests fail on Darwin
platforms = lib.platforms.linux;
};
}
|