2021-06-07 09:00:58 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, google-auth
|
|
|
|
, google-auth-oauthlib
|
|
|
|
, requests
|
|
|
|
, decorator
|
|
|
|
, fsspec
|
|
|
|
, ujson
|
|
|
|
, aiohttp
|
|
|
|
, crcmod
|
|
|
|
, pytest-vcr
|
|
|
|
, vcrpy
|
|
|
|
}:
|
2021-04-22 16:08:27 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gcsfs";
|
2021-08-18 22:57:35 +01:00
|
|
|
version = "2021.07.0";
|
2021-06-07 09:00:58 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-04-22 16:08:27 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-18 22:57:35 +01:00
|
|
|
sha256 = "sha256-nC/uyhKKam3W+cOOTBULPeG6Hy2bExWYNOfDs1cPt1Y=";
|
2021-04-22 16:08:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-06-07 09:00:58 +01:00
|
|
|
aiohttp
|
|
|
|
crcmod
|
|
|
|
decorator
|
|
|
|
fsspec
|
2021-04-22 16:08:27 +01:00
|
|
|
google-auth
|
|
|
|
google-auth-oauthlib
|
|
|
|
requests
|
|
|
|
ujson
|
|
|
|
];
|
|
|
|
|
2021-06-07 09:00:58 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest-vcr
|
|
|
|
pytestCheckHook
|
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests wants to communicate with the Link-local address
|
|
|
|
"test_GoogleCredentials_None"
|
|
|
|
];
|
|
|
|
|
2021-04-22 16:08:27 +01:00
|
|
|
pythonImportsCheck = [ "gcsfs" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convenient Filesystem interface over GCS";
|
|
|
|
homepage = "https://github.com/dask/gcsfs";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.nbren12 ];
|
|
|
|
};
|
|
|
|
}
|