From 73a51fce0902c995b2a039737163221c03005b1c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 28 Dec 2022 16:26:29 +0100 Subject: [PATCH] python310Packages.google-cloud-spanner: adjust inputs --- .../google-cloud-spanner/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-spanner/default.nix b/pkgs/development/python-modules/google-cloud-spanner/default.nix index e5e32526a1cb..1fdf98d3baa3 100644 --- a/pkgs/development/python-modules/google-cloud-spanner/default.nix +++ b/pkgs/development/python-modules/google-cloud-spanner/default.nix @@ -1,16 +1,17 @@ { lib , buildPythonPackage , fetchPypi -, grpc-google-iam-v1 , google-cloud-core , google-cloud-testutils +, grpc-google-iam-v1 , libcst , mock , proto-plus -, pytestCheckHook +, protobuf , pytest-asyncio -, sqlparse +, pytestCheckHook , pythonOlder +, sqlparse }: buildPythonPackage rec { @@ -28,16 +29,22 @@ buildPythonPackage rec { propagatedBuildInputs = [ google-cloud-core grpc-google-iam-v1 - libcst proto-plus + protobuf sqlparse - ]; + ] ++ google-api-core.optional-dependencies.grpc; + + passthru.optional-dependencies = { + libcst = [ + libcst + ]; + }; checkInputs = [ google-cloud-testutils mock - pytestCheckHook pytest-asyncio + pytestCheckHook ]; preCheck = ''