mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 12:14:10 +00:00
61 lines
1.0 KiB
Nix
61 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, google-auth
|
|
, google-auth-oauthlib
|
|
, requests
|
|
, decorator
|
|
, fsspec
|
|
, ujson
|
|
, aiohttp
|
|
, crcmod
|
|
, pytest-vcr
|
|
, vcrpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gcsfs";
|
|
version = "2021.06.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dask";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-tJeCSGK24WC8E7NKupg6/Tv861idWg6WYir+ZXeU+e0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
crcmod
|
|
decorator
|
|
fsspec
|
|
google-auth
|
|
google-auth-oauthlib
|
|
requests
|
|
ujson
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-vcr
|
|
pytestCheckHook
|
|
vcrpy
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tests wants to communicate with the Link-local address
|
|
"test_GoogleCredentials_None"
|
|
];
|
|
|
|
pythonImportsCheck = [ "gcsfs" ];
|
|
|
|
meta = with lib; {
|
|
description = "Convenient Filesystem interface over GCS";
|
|
homepage = "https://github.com/dask/gcsfs";
|
|
license = licenses.bsd3;
|
|
maintainers = [ maintainers.nbren12 ];
|
|
};
|
|
}
|