Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 36 lines 794 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, grpc_google_iam_v1 5, grpcio-gcp 6, google_api_core 7, google_cloud_core 8, pytest 9, mock 10, isPy38 11}: 12 13buildPythonPackage rec { 14 pname = "google-cloud-spanner"; 15 version = "1.13.0"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "eafa09cc344339a23702ee74eac5713974fefafdfd56afb589bd25548c79c80d"; 20 }; 21 22 checkInputs = [ pytest mock ]; 23 propagatedBuildInputs = [ grpcio-gcp grpc_google_iam_v1 google_api_core google_cloud_core ]; 24 25 checkPhase = '' 26 pytest tests/unit 27 ''; 28 29 meta = with stdenv.lib; { 30 description = "Cloud Spanner API client library"; 31 homepage = https://github.com/GoogleCloudPlatform/google-cloud-python; 32 license = licenses.asl20; 33 maintainers = [ maintainers.costrouc ]; 34 broken = isPy38; 35 }; 36}