Commit 98847c8e authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

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

parent fd6614f8
Loading
Loading
Loading
Loading
+16 −2
Original line number Diff line number Diff line
@@ -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"