Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / gcsfs / default.nix
blob71d52947b0c4ffd563ceebc9412532cbdaa404e9
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 , google-auth
7 , google-auth-oauthlib
8 , google-cloud-storage
9 , requests
10 , decorator
11 , fsspec
12 , ujson
13 , aiohttp
14 , crcmod
15 , pytest-timeout
16 , pytest-vcr
17 , vcrpy
20 buildPythonPackage rec {
21   pname = "gcsfs";
22   version = "2024.2.0";
23   format = "setuptools";
25   disabled = pythonOlder "3.7";
27   src = fetchFromGitHub {
28     owner = "fsspec";
29     repo = pname;
30     rev = "refs/tags/${version}";
31     hash = "sha256-6O09lP2cWLzeMTBathb3O/tVGZPEHSqujfUPWZIBUJI=";
32   };
34   propagatedBuildInputs = [
35     aiohttp
36     crcmod
37     decorator
38     fsspec
39     google-auth
40     google-auth-oauthlib
41     google-cloud-storage
42     requests
43     ujson
44   ];
46   nativeCheckInputs = [
47     pytest-vcr
48     pytest-timeout
49     pytestCheckHook
50     vcrpy
51   ];
53   disabledTests =[
54     # Cannot connect to host storage.googleapis.com:443
55     "test_credentials_from_raw_token"
56   ];
58   disabledTestPaths = [
59     # Tests require a running Docker instance
60     "gcsfs/tests/test_core.py"
61     "gcsfs/tests/test_mapping.py"
62     "gcsfs/tests/test_retry.py"
63     "gcsfs/tests/derived/gcsfs_test.py"
64     "gcsfs/tests/test_inventory_report_listing.py"
65   ];
67   pytestFlagsArray = [
68     "-x"
69   ];
71   pythonImportsCheck = [
72     "gcsfs"
73   ];
75   meta = with lib; {
76     description = "Convenient Filesystem interface over GCS";
77     homepage = "https://github.com/fsspec/gcsfs";
78     changelog = "https://github.com/fsspec/gcsfs/raw/${version}/docs/source/changelog.rst";
79     license = licenses.bsd3;
80     maintainers = with maintainers; [ nbren12 ];
81   };