Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 38 lines 816 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, pytestCheckHook 6, python 7, google-api-core 8, grpcio 9, mock 10}: 11 12buildPythonPackage rec { 13 pname = "google-cloud-core"; 14 version = "1.6.0"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "c6abb18527545379fc82efc4de75ce9a3772ccad2fc645adace593ba097cbb02"; 19 }; 20 21 propagatedBuildInputs = [ google-api-core ]; 22 23 checkInputs = [ mock pytestCheckHook ]; 24 25 # prevent google directory from shadowing google imports 26 preCheck = '' 27 rm -r google 28 ''; 29 30 pythonImportsCheck = [ "google.cloud" ]; 31 32 meta = with lib; { 33 description = "API Client library for Google Cloud: Core Helpers"; 34 homepage = "https://github.com/googleapis/python-cloud-core"; 35 license = licenses.asl20; 36 maintainers = with maintainers; [ SuperSandro2000 ]; 37 }; 38}