python3Packages.google_cloud_spanner: 1.17.1 -> 1.19.1
This commit is contained in:
parent
d6e7e3c6f8
commit
d0b54015df
|
@ -1,35 +1,32 @@
|
||||||
{ stdenv
|
{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
|
||||||
, buildPythonPackage
|
, grpc_google_iam_v1, grpcio-gcp, google_api_core, google_cloud_core
|
||||||
, fetchPypi
|
, google_cloud_testutils, mock, pytest }:
|
||||||
, grpc_google_iam_v1
|
|
||||||
, grpcio-gcp
|
|
||||||
, google_api_core
|
|
||||||
, google_cloud_core
|
|
||||||
, pytest
|
|
||||||
, mock
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-spanner";
|
pname = "google-cloud-spanner";
|
||||||
version = "1.17.1";
|
version = "1.19.1";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "3240a04eaa6496e9d8bf4929f4ff04de1652621fd49555eb83b743c48ed9ca04";
|
sha256 = "0b9ifh9i4hkcs19b4l6v8j8v93yd8p3j19qrrjvvf5a44bc7bhsh";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
disabled = pythonOlder "3.5";
|
||||||
propagatedBuildInputs = [ grpcio-gcp grpc_google_iam_v1 google_api_core google_cloud_core ];
|
|
||||||
|
|
||||||
# avoid importing local package
|
checkInputs = [ google_cloud_testutils mock pytestCheckHook ];
|
||||||
checkPhase = ''
|
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 = ''
|
||||||
rm -r google
|
rm -r google
|
||||||
pytest tests/unit
|
rm tests/system/test_system.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Cloud Spanner API client library";
|
description = "Cloud Spanner API client library";
|
||||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
homepage = "https://pypi.org/project/google-cloud-spanner";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = [ maintainers.costrouc ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue