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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
hatch-vcs,
attrs,
click,
click-default-group,
networkx,
optree,
packaging,
pluggy,
rich,
sqlalchemy,
universal-pathlib,
pytestCheckHook,
cloudpickle,
nbmake,
pexpect,
pytest-xdist,
syrupy,
git,
}:
buildPythonPackage rec {
pname = "pytask";
version = "0.5.7";
pyproject = true;
src = fetchFromGitHub {
owner = "pytask-dev";
repo = "pytask";
tag = "v${version}";
hash = "sha256-qXqmI3IRJUTTsTdLlkjHc5+Vdct4j4MJYgnrRx3gTR8=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [
attrs
click
click-default-group
networkx
optree
packaging
pluggy
rich
sqlalchemy
universal-pathlib
];
nativeCheckInputs = [
pytestCheckHook
cloudpickle
git
nbmake
pexpect
pytest-xdist
syrupy
];
# The test suite runs the installed command for e2e tests
preCheck = ''
export PATH="$PATH:$out/bin";
'';
disabledTests = [
# This accesses the network
"test_download_file"
# Racy
"test_more_nested_pytree_and_python_node_as_return_with_names"
# Without uv, subprocess unexpectedly doesn't fail
"test_pytask_on_a_module_that_uses_the_functional_api"
# Timeout
"test_pdb_interaction_capturing_twice"
"test_pdb_interaction_capturing_simple"
];
meta = {
description = "Workflow management system that facilitates reproducible data analyses";
homepage = "https://github.com/pytask-dev/pytask";
changelog = "https://github.com/pytask-dev/pytask/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ erooke ];
};
}
|