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-U6idxc5U2Bt581c/vnGgIou5+hoEJJZSPCo97MEDaW4=";
35 propagatedBuildInputs = [
42 ] ++ lib.optionals (pythonOlder "3.10") [
52 # Tests require network access
53 "test_get_item_with_kwargs"
55 "test_upload_metadata"
56 "test_upload_queue_derive"
57 "test_upload_validate_identifie"
58 "test_upload_validate_identifier"
62 # Tests require network access
63 "tests/cli/test_ia.py"
64 "tests/cli/test_ia_download.py"
67 pythonImportsCheck = [
72 description = "A Python and Command-Line Interface to Archive.org";
73 homepage = "https://github.com/jjjake/internetarchive";
74 changelog = "https://github.com/jjjake/internetarchive/blob/v${version}/HISTORY.rst";
75 license = licenses.agpl3Plus;