Files
nixpkgs/pkgs/development/python-modules/gcsfs/default.nix
2026-04-24 11:45:38 +00:00

70 lines
1.3 KiB
Nix
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
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 ];
};
})