Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.2 kB · 101 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102{ lib, buildPythonPackage, deprecated, fetchFromGitHub, google-api-core, google-cloud-core, google-cloud-testutils, grpc-google-iam-v1, grpc-interceptor, libcst, mock, proto-plus, protobuf, pytest-asyncio, pytestCheckHook, pythonOlder, sqlparse, setuptools,}:
buildPythonPackage rec { pname = "google-cloud-spanner"; version = "3.51.0"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "googleapis"; repo = "python-spanner"; tag = "v${version}"; hash = "sha256-ug3xtPykH4emiQuK1UxWGUeKmXqkY/EX0mSncCkGCQg="; };
build-system = [ setuptools ];
dependencies = [ deprecated google-api-core google-cloud-core grpc-google-iam-v1 grpc-interceptor proto-plus protobuf sqlparse ] ++ google-api-core.optional-dependencies.grpc;
optional-dependencies = { libcst = [ libcst ]; };
nativeCheckInputs = [ google-cloud-testutils mock pytest-asyncio pytestCheckHook ];
preCheck = '' # prevent google directory from shadowing google imports rm -r google '';
disabledTests = [ # Requires credentials "test_list_backup" "test_list_database" "test_list_instance" ];
disabledTestPaths = [ # Requires credentials "tests/system/test_backup_api.py" "tests/system/test_database_api.py" "tests/system/test_dbapi.py" "tests/system/test_instance_api.py" "tests/system/test_session_api.py" "tests/system/test_streaming_chunking.py" "tests/system/test_table_api.py" "tests/unit/spanner_dbapi/test_connect.py" "tests/unit/spanner_dbapi/test_connection.py" "tests/unit/spanner_dbapi/test_cursor.py" "samples/samples/" ];
pythonImportsCheck = [ "google.cloud.spanner_admin_database_v1" "google.cloud.spanner_admin_instance_v1" "google.cloud.spanner_dbapi" "google.cloud.spanner_v1" ];
meta = with lib; { description = "Cloud Spanner API client library"; homepage = "https://github.com/googleapis/python-spanner"; changelog = "https://github.com/googleapis/python-spanner/blob/v${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = [ ]; };}