From b41123e1e53b7491d975fe2991a7f6464af0a968 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 24 Apr 2026 11:45:38 +0000 Subject: [PATCH] python3Packages.gcsfs: cleanup, fix hash --- .../python-modules/gcsfs/default.nix | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/gcsfs/default.nix b/pkgs/development/python-modules/gcsfs/default.nix index dec83f811bf6..1a81e2556ec7 100644 --- a/pkgs/development/python-modules/gcsfs/default.nix +++ b/pkgs/development/python-modules/gcsfs/default.nix @@ -2,29 +2,36 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system setuptools, + + # dependencies + aiohttp, + decorator, + fsspec, google-auth, google-auth-oauthlib, google-cloud-storage, google-cloud-storage-control, requests, - decorator, - fsspec, + + # optional-dependencies fusepy, - aiohttp, crcmod, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "gcsfs"; version = "2026.3.0"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "fsspec"; repo = "gcsfs"; - tag = version; - hash = "sha256-eTIAGPin7Ej+aar5ZXATeYfqQJrGnyWfUdBIfq5eq/c="; + tag = finalAttrs.version; + hash = "sha256-RLh3xFW/0qX5labJeUDsRRmQtnTdkvBS+gzJUJ1IP7k="; }; build-system = [ @@ -55,8 +62,8 @@ buildPythonPackage rec { meta = { description = "Convenient Filesystem interface over GCS"; homepage = "https://github.com/fsspec/gcsfs"; - changelog = "https://github.com/fsspec/gcsfs/raw/${src.tag}/docs/source/changelog.rst"; + changelog = "https://github.com/fsspec/gcsfs/raw/${finalAttrs.src.tag}/docs/source/changelog.rst"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ nbren12 ]; }; -} +})