Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 41 lines 850 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-api-core 5, google-cloud-core 6, pytestCheckHook 7, mock 8}: 9 10buildPythonPackage rec { 11 pname = "google-cloud-dns"; 12 version = "0.32.2"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "0ec98a9933b2abd95b174c9cae0477b90aa4c1f5068b69a9f8ced6d20db1cd5a"; 17 }; 18 19 propagatedBuildInputs = [ google-api-core google-cloud-core ]; 20 21 checkInputs = [ mock pytestCheckHook ]; 22 23 preCheck = '' 24 # don#t shadow python imports 25 rm -r google 26 ''; 27 28 disabledTests = [ 29 # requires credentials 30 "test_quota" 31 ]; 32 33 pythonImportsCheck = [ "google.cloud.dns" ]; 34 35 meta = with lib; { 36 description = "Google Cloud DNS API client library"; 37 homepage = "https://github.com/googleapis/python-dns"; 38 license = licenses.asl20; 39 maintainers = with maintainers; [ SuperSandro2000 ]; 40 }; 41}