From 6a245fcf26534ee1d3755dbea5b8575533b64e0c Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 03:03:25 +0700 Subject: [PATCH] python3Packages.blobfile: modernize --- pkgs/development/python-modules/blobfile/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/blobfile/default.nix b/pkgs/development/python-modules/blobfile/default.nix index b79f80b73661..7f8d1f818cca 100644 --- a/pkgs/development/python-modules/blobfile/default.nix +++ b/pkgs/development/python-modules/blobfile/default.nix @@ -9,15 +9,17 @@ urllib3, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "blobfile"; version = "3.1.0"; pyproject = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "christopher-hesse"; repo = "blobfile"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-aTHEJ1P+v9IWXPg9LN+KG1TlEVJh0qTl8J41iWpoPWk="; }; @@ -38,8 +40,8 @@ buildPythonPackage rec { meta = { description = "Read Google Cloud Storage, Azure Blobs, and local paths with the same interface"; homepage = "https://github.com/christopher-hesse/blobfile"; - changelog = "https://github.com/christopher-hesse/blobfile/blob/${src.tag}/CHANGES.md"; + changelog = "https://github.com/christopher-hesse/blobfile/blob/${finalAttrs.src.tag}/CHANGES.md"; license = lib.licenses.unlicense; maintainers = with lib.maintainers; [ happysalada ]; }; -} +})