python3Packages.swh-core: cleanup, skip failing tests on python>=3.14

This commit is contained in:
Gaetan Lepage
2026-04-14 22:01:56 +00:00
parent fd6614f811
commit 98847c8e08
@@ -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"