From 097aeaa976cb9959423e3b68269f4a6ede71300c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 19 Oct 2022 23:08:27 +0000 Subject: [PATCH 1/2] python310Packages.google-cloud-datastore: 2.8.3 -> 2.9.0 --- .../python-modules/google-cloud-datastore/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-datastore/default.nix b/pkgs/development/python-modules/google-cloud-datastore/default.nix index c5c2fdf988bd..82f251fa582e 100644 --- a/pkgs/development/python-modules/google-cloud-datastore/default.nix +++ b/pkgs/development/python-modules/google-cloud-datastore/default.nix @@ -13,11 +13,11 @@ buildPythonPackage rec { pname = "google-cloud-datastore"; - version = "2.8.3"; + version = "2.9.0"; src = fetchPypi { inherit pname version; - sha256 = "sha256-JtSY/mQ7BAatBiq9XCO9O0x6nnyPpECnlSYNq9brxp8="; + sha256 = "sha256-8/gmeLpdheW7M9nhM0uTlxrpeRcODSgLVOVKPj9O870="; }; propagatedBuildInputs = [ From 40cc6d4969382ae3fc2154079df605d0bb01c412 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 20 Oct 2022 08:30:35 +0200 Subject: [PATCH 2/2] python310Packages.google-cloud-datastore: disable on older Python releases - add optional-dependencies --- .../google-cloud-datastore/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-datastore/default.nix b/pkgs/development/python-modules/google-cloud-datastore/default.nix index 82f251fa582e..a950f09050c6 100644 --- a/pkgs/development/python-modules/google-cloud-datastore/default.nix +++ b/pkgs/development/python-modules/google-cloud-datastore/default.nix @@ -9,24 +9,33 @@ , pytestCheckHook , pytest-asyncio , google-cloud-testutils +, pythonOlder }: buildPythonPackage rec { pname = "google-cloud-datastore"; version = "2.9.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-8/gmeLpdheW7M9nhM0uTlxrpeRcODSgLVOVKPj9O870="; + hash = "sha256-8/gmeLpdheW7M9nhM0uTlxrpeRcODSgLVOVKPj9O870="; }; propagatedBuildInputs = [ google-api-core google-cloud-core - libcst proto-plus ]; + passthru.optional-dependencies = { + libcst = [ + libcst + ]; + }; + checkInputs = [ google-cloud-testutils mock