From 693b4d904a1e98daaa9df3a5734f0a9e891b0345 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 26 Nov 2023 16:12:13 +0100 Subject: [PATCH] python311Packages.warcio: disable failing test --- pkgs/development/python-modules/warcio/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/warcio/default.nix b/pkgs/development/python-modules/warcio/default.nix index 47af36478133..fe9f7bdeb0f1 100644 --- a/pkgs/development/python-modules/warcio/default.nix +++ b/pkgs/development/python-modules/warcio/default.nix @@ -28,6 +28,7 @@ buildPythonPackage rec { patches = [ (fetchpatch { + # Add offline mode to skip tests that require an internet connection, https://github.com/webrecorder/warcio/pull/135 name = "add-offline-option.patch"; url = "https://github.com/webrecorder/warcio/pull/135/commits/2546fe457c57ab0b391764a4ce419656458d9d07.patch"; hash = "sha256-3izm9LvAeOFixiIUUqmd5flZIxH92+NxL7jeu35aObQ="; @@ -51,6 +52,11 @@ buildPythonPackage rec { "--offline" ]; + disabledTests = [ + # Tests require network access, see above + "test_get_cache_to_file" + ]; + pythonImportsCheck = [ "warcio" ];