pythonPackages.google_cloud_speech: Fix depedencies
This commit is contained in:
parent
f922908807
commit
a40a35d8da
@ -1,5 +1,13 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi
|
{ stdenv
|
||||||
, google_api_core, pytest, mock }:
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, google_api_core
|
||||||
|
, libcst
|
||||||
|
, mock
|
||||||
|
, proto-plus
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-asyncio
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-speech";
|
pname = "google-cloud-speech";
|
||||||
@ -7,20 +15,29 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "a7428190f4c10440148a273eb4c91480470b34180eec422b7325acdc0b2c0832";
|
sha256 = "0ch85h5xrb15fcml5v0f30s0niw02k4v8gi7i8a40161yj882hm7";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ google_api_core ];
|
propagatedBuildInputs = [ libcst google_api_core proto-plus ];
|
||||||
checkInputs = [ pytest mock ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
|
||||||
pytest tests/unit
|
|
||||||
'';
|
pytestFlagsArray = [
|
||||||
|
# requrire credentials
|
||||||
|
"--ignore=tests/system/gapic/v1/test_system_speech_v1.py"
|
||||||
|
"--ignore=tests/system/gapic/v1p1beta1/test_system_speech_v1p1beta1.py"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"google.cloud.speech"
|
||||||
|
"google.cloud.speech_v1"
|
||||||
|
"google.cloud.speech_v1p1beta1"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Cloud Speech API enables integration of Google speech recognition into applications.";
|
description = "Google Cloud Speech API client library";
|
||||||
homepage = "https://github.com/googleapis/google-cloud-python/tree/master/speech";
|
homepage = "https://github.com/googleapis/python-speech";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user