From 9ac23fddbba425cb2c8ccc7d56cfdcc4d6122a73 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 7 Jun 2026 23:03:26 +0200 Subject: [PATCH] python3Packages.google-cloud-datastore: migrate to finalAttrs --- .../google-cloud-datastore/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-datastore/default.nix b/pkgs/development/python-modules/google-cloud-datastore/default.nix index 4b4300e91ebd..8d819a0764c2 100644 --- a/pkgs/development/python-modules/google-cloud-datastore/default.nix +++ b/pkgs/development/python-modules/google-cloud-datastore/default.nix @@ -14,22 +14,20 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "google-cloud-datastore"; version = "2.25.0"; pyproject = true; src = fetchPypi { pname = "google_cloud_datastore"; - inherit version; + inherit (finalAttrs) version; hash = "sha256-3WRqPY+ZwnULtfbg8Y7Oe+2V/XbgLayt2/o1orIjKP8="; }; build-system = [ setuptools ]; - pythonRelaxDeps = [ - "protobuf" - ]; + pythonRelaxDeps = [ "protobuf" ]; dependencies = [ google-api-core @@ -74,8 +72,8 @@ buildPythonPackage rec { meta = { description = "Google Cloud Datastore API client library"; homepage = "https://github.com/googleapis/python-datastore"; - changelog = "https://github.com/googleapis/python-datastore/blob/v${version}/CHANGELOG.md"; + changelog = "https://github.com/googleapis/python-datastore/blob/v${finalAttrs.version}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = [ ]; }; -} +})