2021-06-07 10:00:58 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, google-auth
|
|
|
|
, google-auth-oauthlib
|
2021-10-21 13:41:03 +02:00
|
|
|
, google-cloud-storage
|
2021-06-07 10:00:58 +02:00
|
|
|
, requests
|
|
|
|
, decorator
|
|
|
|
, fsspec
|
|
|
|
, ujson
|
|
|
|
, aiohttp
|
|
|
|
, crcmod
|
|
|
|
, pytest-vcr
|
|
|
|
, vcrpy
|
|
|
|
}:
|
2021-04-22 17:08:27 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gcsfs";
|
2022-05-22 18:55:20 +02:00
|
|
|
version = "2022.5.0";
|
2022-02-14 19:32:53 +01:00
|
|
|
format = "setuptools";
|
2021-10-21 13:41:03 +02:00
|
|
|
|
2022-02-14 19:32:53 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-22 17:08:27 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-01-05 15:57:25 +01:00
|
|
|
owner = "fsspec";
|
2021-04-22 17:08:27 +02:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-05-22 18:55:20 +02:00
|
|
|
hash = "sha256-gIkK1VSg1h04+MQBoxFtXIdn80faJlgQ9ayqV5p0RMU=";
|
2021-04-22 17:08:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-06-07 10:00:58 +02:00
|
|
|
aiohttp
|
|
|
|
crcmod
|
|
|
|
decorator
|
|
|
|
fsspec
|
2021-04-22 17:08:27 +02:00
|
|
|
google-auth
|
|
|
|
google-auth-oauthlib
|
2021-10-21 13:41:03 +02:00
|
|
|
google-cloud-storage
|
2021-04-22 17:08:27 +02:00
|
|
|
requests
|
|
|
|
ujson
|
|
|
|
];
|
|
|
|
|
2021-06-07 10:00:58 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytest-vcr
|
|
|
|
pytestCheckHook
|
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
2022-02-14 19:32:53 +01:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests require a running Docker instance
|
|
|
|
"gcsfs/tests/test_core.py"
|
|
|
|
"gcsfs/tests/test_mapping.py"
|
|
|
|
"gcsfs/tests/test_retry.py"
|
2021-06-07 10:00:58 +02:00
|
|
|
];
|
|
|
|
|
2022-05-22 18:55:20 +02:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-x"
|
|
|
|
];
|
2022-02-14 19:32:53 +01:00
|
|
|
|
2021-10-21 13:41:03 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"gcsfs"
|
|
|
|
];
|
2021-04-22 17:08:27 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convenient Filesystem interface over GCS";
|
2022-01-05 15:57:25 +01:00
|
|
|
homepage = "https://github.com/fsspec/gcsfs";
|
2021-04-22 17:08:27 +02:00
|
|
|
license = licenses.bsd3;
|
2021-10-21 13:41:03 +02:00
|
|
|
maintainers = with maintainers; [ nbren12 ];
|
2021-04-22 17:08:27 +02:00
|
|
|
};
|
|
|
|
}
|