2020-11-03 01:17:50 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
|
|
|
|
, grpc_google_iam_v1, grpcio-gcp, google_api_core, google_cloud_core
|
|
|
|
, google_cloud_testutils, mock, pytest }:
|
2018-11-02 20:22:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-spanner";
|
2020-11-03 01:17:50 +00:00
|
|
|
version = "1.19.1";
|
2018-11-02 20:22:03 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-03 01:17:50 +00:00
|
|
|
sha256 = "0b9ifh9i4hkcs19b4l6v8j8v93yd8p3j19qrrjvvf5a44bc7bhsh";
|
2018-11-02 20:22:03 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 01:17:50 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2018-11-02 20:22:03 +00:00
|
|
|
|
2020-11-03 01:17:50 +00:00
|
|
|
checkInputs = [ google_cloud_testutils mock pytestCheckHook ];
|
|
|
|
propagatedBuildInputs =
|
|
|
|
[ grpcio-gcp grpc_google_iam_v1 google_api_core google_cloud_core ];
|
|
|
|
|
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
# remove tests that require credentials
|
|
|
|
preCheck = ''
|
2020-03-18 21:38:13 +00:00
|
|
|
rm -r google
|
2020-11-03 01:17:50 +00:00
|
|
|
rm tests/system/test_system.py
|
2018-11-02 20:22:03 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cloud Spanner API client library";
|
2020-11-03 01:17:50 +00:00
|
|
|
homepage = "https://pypi.org/project/google-cloud-spanner";
|
2018-11-02 20:22:03 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|