Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 59 lines 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, libcst 6, google-api-core 7, google-cloud-storage 8, google-cloud-testutils 9, pandas 10, proto-plus 11, pytest-asyncio 12, mock 13}: 14 15buildPythonPackage rec { 16 pname = "google-cloud-automl"; 17 version = "2.2.0"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "874defad583e90e55a3e83aff27eb5fe108d9197d839cd45f3eacf2395881806"; 22 }; 23 24 propagatedBuildInputs = [ google-api-core libcst proto-plus ]; 25 26 checkInputs = [ 27 google-cloud-storage 28 google-cloud-testutils 29 mock 30 pandas 31 pytest-asyncio 32 pytestCheckHook 33 ]; 34 35 preCheck = '' 36 # do not shadow imports 37 rm -r google 38 # requires credentials 39 rm tests/system/gapic/v1beta1/test_system_tables_client_v1.py 40 ''; 41 42 disabledTests = [ 43 # requires credentials 44 "test_prediction_client_client_info" 45 ]; 46 47 pythonImportsCheck = [ 48 "google.cloud.automl" 49 "google.cloud.automl_v1" 50 "google.cloud.automl_v1beta1" 51 ]; 52 53 meta = with lib; { 54 description = "Cloud AutoML API client library"; 55 homepage = "https://github.com/googleapis/python-automl"; 56 license = licenses.asl20; 57 maintainers = with maintainers; [ SuperSandro2000 ]; 58 }; 59}