From 5438eca3808ffc2bfb65a11bf38c36c400fc4dc0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 28 Sep 2025 02:18:40 +0200 Subject: [PATCH] python313Packages.datalad-next: 1.5.0 -> 1.6.0-unstable-2025-07-04 --- .../python-modules/datalad-next/default.nix | 57 +++++++++++-------- 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/pkgs/development/python-modules/datalad-next/default.nix b/pkgs/development/python-modules/datalad-next/default.nix index f1a1d09d5a26..c46762606788 100644 --- a/pkgs/development/python-modules/datalad-next/default.nix +++ b/pkgs/development/python-modules/datalad-next/default.nix @@ -1,46 +1,47 @@ { + lib, annexremote, buildPythonPackage, datalad, datasalad, + distutils, fetchFromGitHub, git-annex, git, + hatch-vcs, + hatchling, humanize, - lib, more-itertools, openssh, psutil, pytestCheckHook, pythonAtLeast, - setuptools, + requests-toolbelt, + requests, unzip, - versioneer, webdavclient3, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { pname = "datalad-next"; - version = "1.5.0"; + version = "1.6.0-unstable-2025-07-04"; pyproject = true; src = fetchFromGitHub { owner = "datalad"; repo = "datalad-next"; - tag = version; - hash = "sha256-fqP6nG2ncDRg48kvlsmPjNBOzfQp9+7wTcGvsYVrRzA="; + rev = "2d2b1526c1e396964dd3ffdbb37597adefe7682d"; + hash = "sha256-47cRxaxOGzR6hDfiW2hS3MNHp2aP9rxtWNxV+33PPfs="; }; - postPatch = '' - # Remove vendorized versioneer.py - rm versioneer.py - ''; + env.SETUPTOOLS_SCM_PRETEND_VERSION = "1.6.0"; nativeBuildInputs = [ git ]; build-system = [ - setuptools - versioneer + hatchling + hatch-vcs ]; dependencies = [ @@ -51,18 +52,22 @@ buildPythonPackage rec { more-itertools ]; - preCheck = '' - export HOME=$TMPDIR - ''; + optional-dependencies = { + httpsupport = [ + requests + requests-toolbelt + ]; + }; nativeCheckInputs = [ - pytestCheckHook - webdavclient3 - psutil - git-annex datalad + git-annex openssh + psutil + pytestCheckHook unzip + webdavclient3 + writableTmpDirAsHomeHook ]; disabledTests = [ @@ -89,14 +94,16 @@ buildPythonPackage rec { # hardcoded /bin path "test_auto_if_wanted_data_transfer_path_restriction" - # requires internet access - "test_push_wanted" + # Test require internet access "test_auto_data_transfer" - "test_http_url_operations" - "test_transparent_decompression" "test_compressed_file_stay_compressed" - "test_ls_file_collection_tarfile" + "test_delete_method" + "test_delete_timeout" + "test_http_url_operations" "test_iter_tar" + "test_ls_file_collection_tarfile" + "test_push_wanted" + "test_transparent_decompression" ] ++ lib.optionals (pythonAtLeast "3.13") [ # RuntimeError @@ -104,7 +111,7 @@ buildPythonPackage rec { ]; disabledTestPaths = [ - # requires internet access + # Tests require internet access "datalad_next/commands/tests/test_download.py" "datalad_next/archive_operations/tests/test_tarfile.py" ];