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" ];