2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
google-auth,
|
|
|
|
google-auth-oauthlib,
|
|
|
|
google-cloud-storage,
|
|
|
|
requests,
|
|
|
|
decorator,
|
|
|
|
fsspec,
|
|
|
|
ujson,
|
|
|
|
aiohttp,
|
|
|
|
crcmod,
|
|
|
|
pytest-timeout,
|
|
|
|
pytest-vcr,
|
|
|
|
vcrpy,
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gcsfs";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2024.2.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;
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-6O09lP2cWLzeMTBathb3O/tVGZPEHSqujfUPWZIBUJI=";
|
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
|
2023-05-24 13:37:59 +00:00
|
|
|
pytest-timeout
|
2021-06-28 23:13:55 +00:00
|
|
|
pytestCheckHook
|
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTests = [
|
2024-04-21 15:54:59 +00:00
|
|
|
# Cannot connect to host storage.googleapis.com:443
|
|
|
|
"test_credentials_from_raw_token"
|
|
|
|
];
|
|
|
|
|
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"
|
2024-04-21 15:54:59 +00:00
|
|
|
"gcsfs/tests/derived/gcsfs_test.py"
|
|
|
|
"gcsfs/tests/test_inventory_report_listing.py"
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "-x" ];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2024-06-05 15:53:02 +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
|
|
|
};
|
|
|
|
}
|