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-vcr
16, vcrpy
17}:
18
19buildPythonPackage rec {
20 pname = "gcsfs";
21 version = "2021.10.1";
22
23 disabled = pythonOlder "3.6";
24
25 src = fetchFromGitHub {
26 owner = "dask";
27 repo = pname;
28 rev = version;
29 sha256 = "sha256-BME40kyxZHx9+XrMCqWYp8+q6tjeYwAw/zISMNpQxDU=";
30 };
31
32 propagatedBuildInputs = [
33 aiohttp
34 crcmod
35 decorator
36 fsspec
37 google-auth
38 google-auth-oauthlib
39 google-cloud-storage
40 requests
41 ujson
42 ];
43
44 checkInputs = [
45 pytest-vcr
46 pytestCheckHook
47 vcrpy
48 ];
49
50 disabledTests = [
51 # Tests wants to communicate with the Link-local address
52 "test_GoogleCredentials_None"
53 ];
54
55 pythonImportsCheck = [
56 "gcsfs"
57 ];
58
59 meta = with lib; {
60 description = "Convenient Filesystem interface over GCS";
61 homepage = "https://github.com/dask/gcsfs";
62 license = licenses.bsd3;
63 maintainers = with maintainers; [ nbren12 ];
64 };
65}