pythonPackages.google_cloud_language: Fix dependencies, cleanups

+15 -10
+15 -10
pkgs/development/python-modules/google_cloud_language/default.nix
··· 1 1 { stdenv 2 2 , buildPythonPackage 3 3 , fetchPypi 4 - , enum34 5 4 , google_api_core 6 - , pytest 5 + , libcst 7 6 , mock 7 + , proto-plus 8 + , pytestCheckHook 9 + , pytest-asyncio 8 10 }: 9 11 10 12 buildPythonPackage rec { ··· 13 15 14 16 src = fetchPypi { 15 17 inherit pname version; 16 - sha256 = "abe7abcd64d25ffdf6d063385869ef8f34a7de421d5676541cd6df63b3c37b88"; 18 + sha256 = "123vqfrn7pyn3ia7cmhx8bgafd4gxxlmhf33s3vgspyjck6sprxb"; 17 19 }; 18 20 19 - checkInputs = [ pytest mock ]; 20 - propagatedBuildInputs = [ enum34 google_api_core ]; 21 + propagatedBuildInputs = [ google_api_core libcst proto-plus ]; 22 + 23 + checkInputs = [ mock pytestCheckHook pytest-asyncio ]; 21 24 22 - checkPhase = '' 23 - pytest tests/unit 24 - ''; 25 + pythonImportsCheck = [ 26 + "google.cloud.language" 27 + "google.cloud.language_v1" 28 + "google.cloud.language_v1beta2" 29 + ]; 25 30 26 31 meta = with stdenv.lib; { 27 32 description = "Google Cloud Natural Language API client library"; 28 - homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python"; 33 + homepage = "https://github.com/googleapis/python-language"; 29 34 license = licenses.asl20; 30 - maintainers = [ maintainers.costrouc ]; 35 + maintainers = with maintainers; [ SuperSandro2000 ]; 31 36 }; 32 37 }