Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, google_api_core 5, pytest 6, mock 7, libcst 8, proto-plus 9}: 10 11buildPythonPackage rec { 12 pname = "google-cloud-dataproc"; 13 version = "2.0.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "d6d94af6c0d5aee0bb88d058a180f4d3341209e112f85a1c7ce0df7887cbf867"; 18 }; 19 20 checkInputs = [ pytest mock ]; 21 propagatedBuildInputs = [ google_api_core libcst proto-plus ]; 22 23 checkPhase = '' 24 pytest tests/unit 25 ''; 26 27 meta = with stdenv.lib; { 28 description = "Google Cloud Dataproc API client library"; 29 homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; 30 license = licenses.asl20; 31 maintainers = [ maintainers.costrouc ]; 32 }; 33}