2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, google-auth
|
|
|
|
, google-auth-oauthlib
|
2021-10-28 06:52:43 +00:00
|
|
|
, google-cloud-storage
|
2021-06-28 23:13:55 +00:00
|
|
|
, requests
|
|
|
|
, decorator
|
|
|
|
, fsspec
|
|
|
|
, ujson
|
|
|
|
, aiohttp
|
|
|
|
, crcmod
|
|
|
|
, pytest-vcr
|
|
|
|
, vcrpy
|
|
|
|
}:
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gcsfs";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "2022.10.0";
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "setuptools";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-01-07 04:07:37 +00:00
|
|
|
owner = "fsspec";
|
2021-04-25 03:57:28 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-11-21 17:40:18 +00:00
|
|
|
hash = "sha256-+S4AziibYWos/hZ1v3883b1Vv3y4xjIDUrQ8c2XJ1MQ=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
aiohttp
|
|
|
|
crcmod
|
|
|
|
decorator
|
|
|
|
fsspec
|
2021-04-25 03:57:28 +00:00
|
|
|
google-auth
|
|
|
|
google-auth-oauthlib
|
2021-10-28 06:52:43 +00:00
|
|
|
google-cloud-storage
|
2021-04-25 03:57:28 +00:00
|
|
|
requests
|
|
|
|
ujson
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
pytest-vcr
|
|
|
|
pytestCheckHook
|
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
2022-03-05 16:20:37 +00: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-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"-x"
|
|
|
|
];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"gcsfs"
|
|
|
|
];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convenient Filesystem interface over GCS";
|
2022-01-07 04:07:37 +00:00
|
|
|
homepage = "https://github.com/fsspec/gcsfs";
|
2022-11-21 17:40:18 +00:00
|
|
|
changelog = "https://github.com/fsspec/gcsfs/raw/${version}/docs/source/changelog.rst";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = licenses.bsd3;
|
2021-10-28 06:52:43 +00:00
|
|
|
maintainers = with maintainers; [ nbren12 ];
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|