Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchPypi, pythonOlder 2, google_auth, protobuf, googleapis_common_protos, requests, grpcio, futures, mock, pytest }: 3 4buildPythonPackage rec { 5 pname = "google-api-core"; 6 version = "1.7.0"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "85693e163a1a6faea69a74f8feaf35d54dfa2559fbdbbe389c93ffb3bb4c9a79"; 11 }; 12 13 propagatedBuildInputs = [ 14 googleapis_common_protos protobuf 15 google_auth requests grpcio 16 ] ++ lib.optional (pythonOlder "3.2") futures; 17 checkInputs = [ mock pytest ]; 18 19 checkPhase = '' 20 py.test 21 ''; 22 23 meta = with lib; { 24 description = "This library is not meant to stand-alone. Instead it defines common helpers used by all Google API clients."; 25 homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; 26 license = licenses.asl20; 27 maintainers = with maintainers; [ vanschelven ]; 28 }; 29}