pythonPackages.google_cloud_language: Fix dependencies, cleanups

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