mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-27 04:26:01 +00:00
70 lines
1.3 KiB
Nix
70 lines
1.3 KiB
Nix
{
|
||
lib,
|
||
buildPythonPackage,
|
||
fetchFromGitHub,
|
||
|
||
# build-system
|
||
setuptools,
|
||
|
||
# dependencies
|
||
aiohttp,
|
||
decorator,
|
||
fsspec,
|
||
google-auth,
|
||
google-auth-oauthlib,
|
||
google-cloud-storage,
|
||
google-cloud-storage-control,
|
||
requests,
|
||
|
||
# optional-dependencies
|
||
fusepy,
|
||
crcmod,
|
||
}:
|
||
|
||
buildPythonPackage (finalAttrs: {
|
||
pname = "gcsfs";
|
||
version = "2026.3.0";
|
||
pyproject = true;
|
||
__structuredAttrs = true;
|
||
|
||
src = fetchFromGitHub {
|
||
owner = "fsspec";
|
||
repo = "gcsfs";
|
||
tag = finalAttrs.version;
|
||
hash = "sha256-RLh3xFW/0qX5labJeUDsRRmQtnTdkvBS+gzJUJ1IP7k=";
|
||
};
|
||
|
||
build-system = [
|
||
setuptools
|
||
];
|
||
|
||
dependencies = [
|
||
aiohttp
|
||
decorator
|
||
fsspec
|
||
google-auth
|
||
google-auth-oauthlib
|
||
google-cloud-storage
|
||
google-cloud-storage-control
|
||
requests
|
||
];
|
||
|
||
optional-dependencies = {
|
||
gcsfuse = [ fusepy ];
|
||
crc = [ crcmod ];
|
||
};
|
||
|
||
# Tests require a running Docker instance
|
||
doCheck = false;
|
||
|
||
pythonImportsCheck = [ "gcsfs" ];
|
||
|
||
meta = {
|
||
description = "Convenient Filesystem interface over GCS";
|
||
homepage = "https://github.com/fsspec/gcsfs";
|
||
changelog = "https://github.com/fsspec/gcsfs/raw/${finalAttrs.src.tag}/docs/source/changelog.rst";
|
||
license = lib.licenses.bsd3;
|
||
maintainers = with lib.maintainers; [ nbren12 ];
|
||
};
|
||
})
|