Skip to content

Commit c2f7a00

Browse files
python3Packages.pytask: init at 0.5.1 (#321304)
2 parents 9bd2835 + aef583f commit c2f7a00

File tree

3 files changed

+95
-0
lines changed

3 files changed

+95
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6644,6 +6644,14 @@
66446644
github = "ErinvanderVeen";
66456645
githubId = 10973664;
66466646
};
6647+
erooke = {
6648+
email = "[email protected]";
6649+
name = "Ethan Rooke";
6650+
keys = [ { fingerprint = "B66B EB9F 6111 E44B 7588 8240 B287 4A77 049A 5923"; } ];
6651+
github = "erooke";
6652+
githubId = 46689793;
6653+
matrix = "@ethan:roo.ke";
6654+
};
66476655
erosennin = {
66486656
email = "[email protected]";
66496657
github = "erosennin";
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
@@ -10444,6 +10444,8 @@ self: super: with self; {
1044410444

1044510445
pysyncthru = callPackage ../development/python-modules/pysyncthru { };
1044610446

10447+
pytask = callPackage ../development/python-modules/pytask { };
10448+
1044710449
pytest-mockito = callPackage ../development/python-modules/pytest-mockito { };
1044810450

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

0 commit comments

Comments
 (0)