Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 24 additions & 17 deletions pkgs/development/python-modules/pytask/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@
fetchFromGitHub,
hatchling,
hatch-vcs,
attrs,
click,
click-default-group,
cloudpickle,
git,
msgspec,
nbmake,
networkx,
optree,
packaging,
pexpect,
pluggy,
pytest-xdist,
pytestCheckHook,
rich,
sqlalchemy,
universal-pathlib,
pytestCheckHook,
cloudpickle,
nbmake,
pexpect,
pytest-xdist,
syrupy,
git,
universal-pathlib,
}:

buildPythonPackage rec {
pname = "pytask";
version = "0.5.8";
version = "0.6.0";
pyproject = true;

src = fetchFromGitHub {
owner = "pytask-dev";
repo = "pytask";
tag = "v${version}";
hash = "sha256-tQUvqqbFUO3cw+dVPfCKiYyhwX31vqUBXr7GrRfPC+A=";
hash = "sha256-l7jQAUBb8iW5S8Am2cMCgqYcvtLq8UgEhrCNnSx9N1E=";
};

build-system = [
Expand All @@ -41,27 +41,34 @@ buildPythonPackage rec {
];

dependencies = [
attrs
click
click-default-group
networkx
msgspec
optree
packaging
pluggy
rich
sqlalchemy
universal-pathlib
];
]
++ msgspec.optional-dependencies.toml;

optional-dependencies = {
dag = [ networkx ];
};

nativeCheckInputs = [
pytestCheckHook
cloudpickle
git
nbmake
pexpect
pytest-xdist
pytestCheckHook

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pytestCheckHook
pytest-xdist
pytestCheckHook

Feel free to keep pytest-xdist as it speeds up the tests (8 vs. 40 seconds on my machine).

syrupy
];
]
++ lib.concatAttrValues optional-dependencies;

pytestFlags = [ "--snapshot-warn-unused" ];

Comment thread
vcunat marked this conversation as resolved.
# The test suite runs the installed command for e2e tests
preCheck = ''
Expand All @@ -73,13 +80,13 @@ buildPythonPackage rec {
"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"
];

pythonImportsCheck = [ "pytask" ];

meta = {
description = "Workflow management system that facilitates reproducible data analyses";
homepage = "https://github.com/pytask-dev/pytask";
Expand Down
Loading