Skip to content

Commit aef583f

Browse files
committed
python3Packages.pytask: init at 0.5.1
1 parent 03a99cd commit aef583f

File tree

2 files changed

+87
-0
lines changed

2 files changed

+87
-0
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
pythonOlder,
5+
fetchFromGitHub,
6+
hatchling,
7+
hatch-vcs,
8+
attrs,
9+
click,
10+
click-default-group,
11+
networkx,
12+
optree,
13+
packaging,
14+
pluggy,
15+
rich,
16+
sqlalchemy,
17+
universal-pathlib,
18+
pytestCheckHook,
19+
nbmake,
20+
pexpect,
21+
pytest-xdist,
22+
syrupy,
23+
git,
24+
tomli,
25+
}:
26+
buildPythonPackage rec {
27+
pname = "pytask";
28+
version = "0.5.1";
29+
pyproject = true;
30+
disabled = pythonOlder "3.8";
31+
32+
src = fetchFromGitHub {
33+
owner = "pytask-dev";
34+
repo = "pytask";
35+
rev = "v${version}";
36+
hash = "sha256-b+sS+l0Rp5bb8Dh6UBv3xHYTYKFp3dD5AuLqxB3n6Go=";
37+
};
38+
39+
build-system = [
40+
hatchling
41+
hatch-vcs
42+
];
43+
44+
dependencies = [
45+
attrs
46+
click
47+
click-default-group
48+
networkx
49+
optree
50+
packaging
51+
pluggy
52+
rich
53+
sqlalchemy
54+
universal-pathlib
55+
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
56+
57+
nativeCheckInputs = [
58+
pytestCheckHook
59+
git
60+
nbmake
61+
pexpect
62+
pytest-xdist
63+
syrupy
64+
];
65+
66+
# The test suite runs the installed command for e2e tests
67+
preCheck = ''
68+
export PATH="$PATH:$out/bin";
69+
'';
70+
71+
disabledTests = [
72+
# This accesses the network
73+
"test_download_file"
74+
# Racy
75+
"test_more_nested_pytree_and_python_node_as_return_with_names"
76+
];
77+
78+
meta = with lib; {
79+
description = "Workflow management system that facilitates reproducible data analyses";
80+
homepage = "https://github.com/pytask-dev/pytask";
81+
changelog = "https://github.com/pytask-dev/pytask/releases/tag/v${version}";
82+
license = licenses.mit;
83+
maintainers = with maintainers; [ erooke ];
84+
};
85+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10412,6 +10412,8 @@ self: super: with self; {
1041210412

1041310413
pysyncthru = callPackage ../development/python-modules/pysyncthru { };
1041410414

10415+
pytask = callPackage ../development/python-modules/pytask { };
10416+
1041510417
pytest-mockito = callPackage ../development/python-modules/pytest-mockito { };
1041610418

1041710419
pytest-pudb = callPackage ../development/python-modules/pytest-pudb { };

0 commit comments

Comments
 (0)