Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy27 2, google_auth, protobuf, googleapis_common_protos, requests, setuptools, grpcio 3, mock 4}: 5 6buildPythonPackage rec { 7 pname = "google-api-core"; 8 version = "1.22.1"; 9 disabled = isPy27; # google namespace no longer works on python2 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "35cba563034d668ae90ffe1f03193a84e745b38f09592f60258358b5e5ee6238"; 14 }; 15 16 propagatedBuildInputs = [ 17 googleapis_common_protos protobuf 18 google_auth requests setuptools grpcio 19 ]; 20 21 # requires nox 22 doCheck = false; 23 checkInputs = [ mock ]; 24 25 pythonImportsCheck = [ 26 "google.auth" 27 "google.protobuf" 28 "google.api" 29 ]; 30 31 meta = with lib; { 32 description = "Core Library for Google Client Libraries"; 33 longDescription = '' 34 This library is not meant to stand-alone. Instead it defines common 35 helpers used by all Google API clients. 36 ''; 37 homepage = "https://github.com/googleapis/python-api-core"; 38 changelog = "https://github.com/googleapis/python-api-core/blob/v${version}/CHANGELOG.md"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ ]; 41 }; 42}