mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
python3Packages.google-cloud-spanner: 3.54.0 -> 3.55.0 (#412176)
This commit is contained in:
commit
affc8c31ff
1 changed files with 20 additions and 10 deletions
|
@ -19,28 +19,28 @@
|
||||||
|
|
||||||
# optional dependencies
|
# optional dependencies
|
||||||
libcst,
|
libcst,
|
||||||
|
|
||||||
# testing
|
|
||||||
google-cloud-monitoring,
|
|
||||||
mmh3,
|
|
||||||
mock,
|
|
||||||
opentelemetry-api,
|
opentelemetry-api,
|
||||||
opentelemetry-sdk,
|
opentelemetry-sdk,
|
||||||
opentelemetry-semantic-conventions,
|
opentelemetry-semantic-conventions,
|
||||||
|
google-cloud-monitoring,
|
||||||
|
mmh3,
|
||||||
|
|
||||||
|
# testing
|
||||||
|
mock,
|
||||||
pytest-asyncio,
|
pytest-asyncio,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-spanner";
|
pname = "google-cloud-spanner";
|
||||||
version = "3.54.0";
|
version = "3.55.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "googleapis";
|
owner = "googleapis";
|
||||||
repo = "python-spanner";
|
repo = "python-spanner";
|
||||||
tag = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-uJKUgY7fV+AK/2HQyjQRFypcL+mPZ/M5ZtAU+f73ezM=";
|
hash = "sha256-0+mTBqgy8SaHjoYhQjCaypipVsJTrN2DdhcfPY3PxSc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
build-system = [ setuptools ];
|
build-system = [ setuptools ];
|
||||||
|
@ -54,10 +54,18 @@ buildPythonPackage rec {
|
||||||
proto-plus
|
proto-plus
|
||||||
protobuf
|
protobuf
|
||||||
sqlparse
|
sqlparse
|
||||||
] ++ google-api-core.optional-dependencies.grpc;
|
];
|
||||||
|
|
||||||
optional-dependencies = {
|
optional-dependencies = {
|
||||||
libcst = [ libcst ];
|
libcst = [ libcst ];
|
||||||
|
tracing = [
|
||||||
|
opentelemetry-api
|
||||||
|
opentelemetry-sdk
|
||||||
|
opentelemetry-semantic-conventions
|
||||||
|
# opentelemetry-resourcedetector-gcp # Not available in nixpkgs
|
||||||
|
google-cloud-monitoring
|
||||||
|
mmh3
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
|
@ -70,7 +78,7 @@ buildPythonPackage rec {
|
||||||
opentelemetry-semantic-conventions
|
opentelemetry-semantic-conventions
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
] ++ lib.flatten (lib.attrValues optional-dependencies);
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
# prevent google directory from shadowing google imports
|
# prevent google directory from shadowing google imports
|
||||||
|
@ -84,6 +92,8 @@ buildPythonPackage rec {
|
||||||
"test_list_instance"
|
"test_list_instance"
|
||||||
# can't import mmh3
|
# can't import mmh3
|
||||||
"test_generate_client_hash"
|
"test_generate_client_hash"
|
||||||
|
# Flaky, compares to execution time
|
||||||
|
"test_snapshot_read_concurrent"
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
|
@ -117,7 +127,7 @@ buildPythonPackage rec {
|
||||||
meta = {
|
meta = {
|
||||||
description = "Cloud Spanner API client library";
|
description = "Cloud Spanner API client library";
|
||||||
homepage = "https://github.com/googleapis/python-spanner";
|
homepage = "https://github.com/googleapis/python-spanner";
|
||||||
changelog = "https://github.com/googleapis/python-spanner/blob/v${version}/CHANGELOG.md";
|
changelog = "https://github.com/googleapis/python-spanner/blob/${src.tag}/CHANGELOG.md";
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = [ lib.maintainers.sarahec ];
|
maintainers = [ lib.maintainers.sarahec ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue