From 204fe9a3775a16fe22d255225cd083dd2c3a0fa9 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Wed, 5 Nov 2025 18:48:12 +0100 Subject: [PATCH] python3Packages.swh-scanner: disable tests failing on click >= 8.2.0 The patch is no longer needed because the respective test is now disabled. --- .../python-modules/swh-scanner/default.nix | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/swh-scanner/default.nix b/pkgs/development/python-modules/swh-scanner/default.nix index e49ba7eb207e..5dca94bb53d2 100644 --- a/pkgs/development/python-modules/swh-scanner/default.nix +++ b/pkgs/development/python-modules/swh-scanner/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitLab, - fetchpatch, setuptools, setuptools-scm, requests, @@ -36,15 +35,6 @@ buildPythonPackage rec { hash = "sha256-baUUuYFapBD7iuDaDP8CSR9f4glVZcS5qBpZddVf7z8="; }; - patches = [ - # To be removed at the next release - # See https://gitlab.softwareheritage.org/swh/devel/swh-scanner/-/merge_requests/160 - (fetchpatch { - url = "https://gitlab.softwareheritage.org/swh/devel/swh-scanner/-/commit/0eb273475826b0074844c7619b767c052562cfe4.patch"; - hash = "sha256-i3hpaQJmHpIYgix+/npICQGtJ/IKVRXcCTm2O1VsR9M="; - }) - ]; - build-system = [ setuptools setuptools-scm @@ -78,6 +68,8 @@ buildPythonPackage rec { disabledTestPaths = [ # pytestRemoveBytecodePhase fails with: "error (ignored): error: opening directory "/tmp/nix-build-python3.12-swh-scanner-0.8.3.drv-5/build/pytest-of-nixbld/pytest-0/test_randomdir_policy_info_cal0/big-directory/dir/dir/dir/ ......" "swh/scanner/tests/test_policy.py" + # TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr' + "swh/scanner/tests/test_cli.py" ]; meta = {