Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 37 lines 828 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, google-api-core 5, libcst 6, mock 7, proto-plus 8, pytestCheckHook 9, pytest-asyncio 10}: 11 12buildPythonPackage rec { 13 pname = "google-cloud-language"; 14 version = "2.0.0"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "123vqfrn7pyn3ia7cmhx8bgafd4gxxlmhf33s3vgspyjck6sprxb"; 19 }; 20 21 propagatedBuildInputs = [ google-api-core libcst proto-plus ]; 22 23 checkInputs = [ mock pytestCheckHook pytest-asyncio ]; 24 25 pythonImportsCheck = [ 26 "google.cloud.language" 27 "google.cloud.language_v1" 28 "google.cloud.language_v1beta2" 29 ]; 30 31 meta = with lib; { 32 description = "Google Cloud Natural Language API client library"; 33 homepage = "https://github.com/googleapis/python-language"; 34 license = licenses.asl20; 35 maintainers = with maintainers; [ SuperSandro2000 ]; 36 }; 37}