17 buildPythonPackage rec {
18 pname = "internetarchive";
22 disabled = pythonOlder "3.8";
24 src = fetchFromGitHub {
26 repo = "internetarchive";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-x4EzVm22iZhGysg2iMtuil2tNJn4/8cWYyULLowODGc=";
31 build-system = [ setuptools ];
39 ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
47 # Tests require network access
48 "test_get_item_with_kwargs"
50 "test_upload_metadata"
51 "test_upload_queue_derive"
52 "test_upload_validate_identifie"
53 "test_upload_validate_identifier"
57 # Tests require network access
58 "tests/cli/test_ia.py"
59 "tests/cli/test_ia_download.py"
62 pythonImportsCheck = [ "internetarchive" ];
65 description = "Python and Command-Line Interface to Archive.org";
66 homepage = "https://github.com/jjjake/internetarchive";
67 changelog = "https://github.com/jjjake/internetarchive/blob/v${version}/HISTORY.rst";
68 license = licenses.agpl3Plus;