From 4614c32b677cad2fed6d91c7c62fb33830dbe4bc Mon Sep 17 00:00:00 2001 From: Kirill Radzikhovskyy Date: Sun, 27 Apr 2025 17:59:27 +1000 Subject: [PATCH 1/2] python3Packages.rapidgzip: fix build; relax setuptools dependency --- pkgs/development/python-modules/rapidgzip/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/rapidgzip/default.nix b/pkgs/development/python-modules/rapidgzip/default.nix index ec89e760611b..5d60a3e96d5f 100644 --- a/pkgs/development/python-modules/rapidgzip/default.nix +++ b/pkgs/development/python-modules/rapidgzip/default.nix @@ -20,6 +20,11 @@ buildPythonPackage rec { hash = "sha256-fTXwrxZXtAUakMPAwsDSQz886Dnbkw/b7T1lFt4qXfE="; }; + prePatch = '' + # pythonRelaxDeps doesn't work here + substituteInPlace pyproject.toml --replace-fail "setuptools >= 61.2, < 72" "setuptools" + ''; + nativeBuildInputs = [ cython nasm From ad44a2ab81e27fbf74c32083f08cd13a1fbce64a Mon Sep 17 00:00:00 2001 From: Kirill Radzikhovskyy Date: Sun, 27 Apr 2025 18:35:28 +1000 Subject: [PATCH 2/2] python3Packages.ratarmountcore: fix build --- pkgs/development/python-modules/ratarmountcore/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/ratarmountcore/default.nix b/pkgs/development/python-modules/ratarmountcore/default.nix index eae5a61d679e..e8b732b62767 100644 --- a/pkgs/development/python-modules/ratarmountcore/default.nix +++ b/pkgs/development/python-modules/ratarmountcore/default.nix @@ -2,12 +2,14 @@ lib, buildPythonPackage, fetchFromGitHub, + fsspec, indexed-gzip, indexed-zstd, libarchive-c, pytestCheckHook, python-xz, pythonOlder, + writableTmpDirAsHomeHook, rapidgzip, rarfile, setuptools, @@ -54,6 +56,8 @@ buildPythonPackage rec { pytestCheckHook zstandard zstd + fsspec + writableTmpDirAsHomeHook ] ++ lib.flatten (builtins.attrValues optional-dependencies); pythonImportsCheck = [ "ratarmountcore" ]; @@ -73,6 +77,8 @@ buildPythonPackage rec { "test_file_versions" "test_stream_compressed" "test_chimera_file" + "test_URLContextManager" + "test_URL" ]; meta = with lib; {