python312Packages.osmnx: 1.9.3 → 2.0.0 (#360529)
[NixPkgs.git] / pkgs / development / python-modules / internetarchive / default.nix
blob3bb9031c48b4ab5e9171355fadf634685d4cec16
2   lib,
3   buildPythonPackage,
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 = "5.0.4";
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-x4EzVm22iZhGysg2iMtuil2tNJn4/8cWYyULLowODGc=";
29   };
31   build-system = [ setuptools ];
33   dependencies = [
34     tqdm
35     requests
36     jsonpatch
37     schema
38     urllib3
39   ] ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
41   nativeCheckInputs = [
42     responses
43     pytestCheckHook
44   ];
46   disabledTests = [
47     # Tests require network access
48     "test_get_item_with_kwargs"
49     "test_upload"
50     "test_upload_metadata"
51     "test_upload_queue_derive"
52     "test_upload_validate_identifie"
53     "test_upload_validate_identifier"
54   ];
56   disabledTestPaths = [
57     # Tests require network access
58     "tests/cli/test_ia.py"
59     "tests/cli/test_ia_download.py"
60   ];
62   pythonImportsCheck = [ "internetarchive" ];
64   meta = with lib; {
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;
69     maintainers = [ ];
70     mainProgram = "ia";
71   };