forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
97 lines (86 loc) · 1.78 KB
/
default.nix
File metadata and controls
97 lines (86 loc) · 1.78 KB
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
96
97
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
hatch-vcs,
click,
click-default-group,
cloudpickle,
git,
msgspec,
nbmake,
networkx,
optree,
packaging,
pexpect,
pluggy,
pytest-xdist,
pytestCheckHook,
rich,
sqlalchemy,
syrupy,
universal-pathlib,
}:
buildPythonPackage rec {
pname = "pytask";
version = "0.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pytask-dev";
repo = "pytask";
tag = "v${version}";
hash = "sha256-l7jQAUBb8iW5S8Am2cMCgqYcvtLq8UgEhrCNnSx9N1E=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [
click
click-default-group
msgspec
optree
packaging
pluggy
rich
sqlalchemy
universal-pathlib
]
++ msgspec.optional-dependencies.toml;
optional-dependencies = {
dag = [ networkx ];
};
nativeCheckInputs = [
cloudpickle
git
nbmake
pexpect
pytest-xdist
pytestCheckHook
syrupy
]
++ lib.concatAttrValues optional-dependencies;
pytestFlags = [ "--snapshot-warn-unused" ];
# 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"
# Timeout
"test_pdb_interaction_capturing_twice"
"test_pdb_interaction_capturing_simple"
];
pythonImportsCheck = [ "pytask" ];
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 ];
};
}