Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, google_api_core 5, google_cloud_core 6, pytest 7, mock 8}: 9 10buildPythonPackage rec { 11 pname = "google-cloud-runtimeconfig"; 12 version = "0.32.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "3d125c01817d5bef2b644095b044d22b03b9d8d4591088cadd8e97851f7a150a"; 17 }; 18 19 checkInputs = [ pytest mock ]; 20 propagatedBuildInputs = [ google_api_core google_cloud_core ]; 21 22 # ignore tests which require credentials or network 23 checkPhase = '' 24 rm -r google 25 pytest tests/unit -k 'not client and not extra_headers' 26 ''; 27 28 meta = with stdenv.lib; { 29 description = "Google Cloud RuntimeConfig API client library"; 30 homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; 31 license = licenses.asl20; 32 maintainers = [ maintainers.costrouc ]; 33 }; 34}