From 8ce8e14e86a09c2431bf6ee914aae5efc76d182d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 6 Jun 2024 08:55:22 +0200 Subject: [PATCH] python312Packages.google-cloud-spanner: 3.45.0 -> 3.47.0 Diff: https://github.com/googleapis/python-spanner/compare/refs/tags/v3.45.0...v3.47.0 Changelog: https://github.com/googleapis/python-spanner/blob/v3.47.0/CHANGELOG.md --- .../google-cloud-spanner/default.nix | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-spanner/default.nix b/pkgs/development/python-modules/google-cloud-spanner/default.nix index 671c5fc37e2ad..1a81fa9dd4c76 100644 --- a/pkgs/development/python-modules/google-cloud-spanner/default.nix +++ b/pkgs/development/python-modules/google-cloud-spanner/default.nix @@ -2,7 +2,7 @@ lib, buildPythonPackage, deprecated, - fetchPypi, + fetchFromGitHub, google-api-core, google-cloud-core, google-cloud-testutils, @@ -21,14 +21,16 @@ buildPythonPackage rec { pname = "google-cloud-spanner"; - version = "3.45.0"; + version = "3.47.0"; pyproject = true; disabled = pythonOlder "3.7"; - src = fetchPypi { - inherit pname version; - hash = "sha256-MKtW6krGqnQ3hCmPgh4N5lRAGTe0DGDMegpUUoSpG0M="; + src = fetchFromGitHub { + owner = "googleapis"; + repo = "python-spanner"; + rev = "refs/tags/v${version}"; + hash = "sha256-eq4tXwXHDdGUyZfPtU/l5cpzYB6AMdqZtj03+2yK8Wk="; }; build-system = [ setuptools ]; @@ -60,6 +62,13 @@ buildPythonPackage rec { rm -r google ''; + disabledTests = [ + # Requires credentials + "test_list_backup" + "test_list_database" + "test_list_instance" + ]; + disabledTestPaths = [ # Requires credentials "tests/system/test_backup_api.py" @@ -72,6 +81,7 @@ buildPythonPackage rec { "tests/unit/spanner_dbapi/test_connect.py" "tests/unit/spanner_dbapi/test_connection.py" "tests/unit/spanner_dbapi/test_cursor.py" + "samples/samples/" ]; pythonImportsCheck = [