Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 55 lines 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-auth 5, googleapis-common-protos 6, grpcio 7, protobuf 8, pytz 9, requests 10, mock 11, pytest 12, pytest-asyncio 13, pytestCheckHook 14}: 15 16buildPythonPackage rec { 17 pname = "google-api-core"; 18 version = "1.26.3"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "sha256-uRQ0XH6iOGEWJpOidwO6uASlVQT35umryv8XTYDfMqw="; 23 }; 24 25 propagatedBuildInputs = [ 26 googleapis-common-protos 27 google-auth 28 grpcio 29 protobuf 30 pytz 31 requests 32 ]; 33 34 checkInputs = [ mock pytest-asyncio pytestCheckHook ]; 35 36 # prevent google directory from shadowing google imports 37 preCheck = '' 38 rm -r google 39 ''; 40 41 pythonImportsCheck = [ "google.api_core" ]; 42 43 meta = with lib; { 44 description = "Core Library for Google Client Libraries"; 45 longDescription = '' 46 This library is not meant to stand-alone. Instead it defines common 47 helpers used by all Google API clients. 48 ''; 49 homepage = "https://github.com/googleapis/python-api-core"; 50 changelog = 51 "https://github.com/googleapis/python-api-core/blob/v${version}/CHANGELOG.md"; 52 license = licenses.asl20; 53 maintainers = with maintainers; [ SuperSandro2000 ]; 54 }; 55}