diff --git a/pkgs/development/python-modules/swh-core/default.nix b/pkgs/development/python-modules/swh-core/default.nix index 4752ec338fcd..8f0e90a34136 100644 --- a/pkgs/development/python-modules/swh-core/default.nix +++ b/pkgs/development/python-modules/swh-core/default.nix @@ -3,6 +3,13 @@ stdenv, buildPythonPackage, fetchFromGitLab, + pythonAtLeast, + + # build-system + setuptools, + setuptools-scm, + + # dependencies backports-entry-points-selectable, click, deprecated, @@ -11,8 +18,8 @@ requests, sentry-sdk, tenacity, - setuptools, - setuptools-scm, + + # tests aiohttp-utils, flask, hypothesis, @@ -114,6 +121,13 @@ buildPythonPackage (finalAttrs: { pkgs.zstd ]; + disabledTestPaths = lib.optionals (pythonAtLeast "3.14") [ + # shutil.RegistryError: .tar.zst is already registered for "zstdtar" + "swh/core/tests/test_cli_nar.py" + "swh/core/tests/test_nar.py" + "swh/core/tests/test_tarball.py" + ]; + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ # FileExistsError: [Errno 17] File exists: "test_uncompress_upper_archive_extension"