Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / internetarchive / default.nix
blob11a089b376d3ad8f7b2daa291165c6a855ef8faf
1 { lib
2 , buildPythonPackage
3 , docopt
4 , fetchFromGitHub
5 , pytestCheckHook
6 , requests
7 , jsonpatch
8 , schema
9 , responses
10 , setuptools
11 , tqdm
12 , urllib3
13 , pythonOlder
14 , importlib-metadata
17 buildPythonPackage rec {
18   pname = "internetarchive";
19   version = "4.0.1";
20   pyproject = true;
22   disabled = pythonOlder "3.8";
24   src = fetchFromGitHub {
25     owner = "jjjake";
26     repo = "internetarchive";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-U6idxc5U2Bt581c/vnGgIou5+hoEJJZSPCo97MEDaW4=";
29   };
31   nativeBuildInputs = [
32     setuptools
33   ];
35   propagatedBuildInputs = [
36     tqdm
37     docopt
38     requests
39     jsonpatch
40     schema
41     urllib3
42   ] ++ lib.optionals (pythonOlder "3.10") [
43     importlib-metadata
44   ];
46   nativeCheckInputs = [
47     responses
48     pytestCheckHook
49   ];
51   disabledTests = [
52     # Tests require network access
53     "test_get_item_with_kwargs"
54     "test_upload"
55     "test_upload_metadata"
56     "test_upload_queue_derive"
57     "test_upload_validate_identifie"
58     "test_upload_validate_identifier"
59   ];
61   disabledTestPaths = [
62     # Tests require network access
63     "tests/cli/test_ia.py"
64     "tests/cli/test_ia_download.py"
65   ];
67   pythonImportsCheck = [
68     "internetarchive"
69   ];
71   meta = with lib; {
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;
76     maintainers = [ ];
77     mainProgram = "ia";
78   };