Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 35 lines 1.1 kB view raw
1{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy27 2, google_auth, protobuf, googleapis_common_protos, requests, setuptools, grpcio, futures, mock }: 3 4buildPythonPackage rec { 5 pname = "google-api-core"; 6 version = "1.15.0"; 7 disabled = isPy27; # google namespace no longer works on python2 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "2d661c8d650a1df5805d0e360121cb55c55d8bd29f858fa62cbe943e59ce89f7"; 12 }; 13 14 propagatedBuildInputs = [ 15 googleapis_common_protos protobuf 16 google_auth requests setuptools grpcio 17 ] ++ lib.optional (pythonOlder "3.2") futures; 18 19 # requires nox 20 doCheck = false; 21 checkInputs = [ mock ]; 22 23 pythonImportsCheck = [ 24 "google.auth" 25 "google.protobuf" 26 "google.api" 27 ]; 28 29 meta = with lib; { 30 description = "This library is not meant to stand-alone. Instead it defines common helpers used by all Google API clients."; 31 homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; 32 license = licenses.asl20; 33 maintainers = with maintainers; [ vanschelven ]; 34 }; 35}