15 buildPythonPackage rec {
18 format = "setuptools";
20 disabled = pythonOlder "3.7";
22 src = fetchFromGitHub {
23 owner = "webrecorder";
25 rev = "aa702cb321621b233c6e5d2a4780151282a778be"; # Repo has no git tags, see https://github.com/webrecorder/warcio/issues/126
26 hash = "sha256-wn2rd73wRfOqHu9H0GIn76tmEsERBBCQatnk4b/JToU=";
31 # Add offline mode to skip tests that require an internet connection, https://github.com/webrecorder/warcio/pull/135
32 name = "add-offline-option.patch";
33 url = "https://github.com/webrecorder/warcio/pull/135/commits/2546fe457c57ab0b391764a4ce419656458d9d07.patch";
34 hash = "sha256-3izm9LvAeOFixiIUUqmd5flZIxH92+NxL7jeu35aObQ=";
38 propagatedBuildInputs = [
45 multidict # Optional. Without this, one test in test/test_utils.py is skipped.
56 # Tests require network access, see above
57 "test_get_cache_to_file"
60 pythonImportsCheck = [
65 description = "Streaming WARC/ARC library for fast web archive IO";
66 mainProgram = "warcio";
67 homepage = "https://github.com/webrecorder/warcio";
68 changelog = "https://github.com/webrecorder/warcio/blob/master/CHANGELIST.rst";
69 license = licenses.asl20;
70 maintainers = with maintainers; [ Luflosi ];