about summary refs log tree commit diff
path: root/pkgs/development/python-modules/gcsfs
diff options
context:
space:
mode:
authorNoah D. Brenowitz <nbren12@gmail.com>2021-04-22 08:08:27 -0700
committerNoah D. Brenowitz <nbren12@gmail.com>2021-04-22 23:49:04 -0700
commite195c22779b0e092833d54f7160f49bf04fdafb2 (patch)
tree0b1473c446bb34dfa06bad19169c70851a51b36e /pkgs/development/python-modules/gcsfs
parentae4c8376367393bf854225fa4cae3e54c77de798 (diff)
python3Packages.gcsfs: init at 2021.04.0
Diffstat (limited to 'pkgs/development/python-modules/gcsfs')
-rw-r--r--pkgs/development/python-modules/gcsfs/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/gcsfs/default.nix b/pkgs/development/python-modules/gcsfs/default.nix
new file mode 100644
index 0000000000000..483e4a61084e9
--- /dev/null
+++ b/pkgs/development/python-modules/gcsfs/default.nix
@@ -0,0 +1,37 @@
+{ buildPythonPackage, fetchFromGitHub, lib, pytestCheckHook, google-auth
+, google-auth-oauthlib, requests, decorator, fsspec, ujson, aiohttp, crcmod
+, pytest-vcr, vcrpy }:
+
+buildPythonPackage rec {
+  pname = "gcsfs";
+  version = "2021.04.0";
+
+  # github sources needed for test data
+  src = fetchFromGitHub {
+    owner = "dask";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-OA43DaQue7R5d6SzfKThEQFEwJndjLfznu1LMubs5fs=";
+  };
+
+  propagatedBuildInputs = [
+    google-auth
+    google-auth-oauthlib
+    requests
+    decorator
+    fsspec
+    aiohttp
+    ujson
+    crcmod
+  ];
+
+  checkInputs = [ pytestCheckHook pytest-vcr vcrpy ];
+  pythonImportsCheck = [ "gcsfs" ];
+
+  meta = with lib; {
+    description = "Convenient Filesystem interface over GCS";
+    homepage = "https://github.com/dask/gcsfs";
+    license = licenses.bsd3;
+    maintainers = [ maintainers.nbren12 ];
+  };
+}