pythonPackages.google_cloud_vision: Fix dependencies, cleanups
This commit is contained in:
parent
6d3fb2bff8
commit
66df5bfc73
@ -1,9 +1,12 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, enum34
|
|
||||||
, google_api_core
|
, google_api_core
|
||||||
|
, libcst
|
||||||
, mock
|
, mock
|
||||||
|
, proto-plus
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-asyncio
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -12,22 +15,27 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "6a067d9a661df2e9b356b2772051decfea1971f8d659c246412a165baf827c61";
|
sha256 = "0qbwhapmn5ia853c4nfnz1qiksngvr8j0xxjasrykwhxcsd7s1ka";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ mock ];
|
propagatedBuildInputs = [ libcst google_api_core proto-plus];
|
||||||
propagatedBuildInputs = [ enum34 google_api_core ];
|
|
||||||
|
|
||||||
# pytest seems to pick up some file which overrides PYTHONPATH
|
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
|
||||||
checkPhase = ''
|
|
||||||
cd tests/unit
|
pythonImportsCheck = [
|
||||||
python -m unittest discover
|
"google.cloud.vision"
|
||||||
'';
|
"google.cloud.vision_helpers"
|
||||||
|
"google.cloud.vision_v1"
|
||||||
|
"google.cloud.vision_v1p1beta1"
|
||||||
|
"google.cloud.vision_v1p2beta1"
|
||||||
|
"google.cloud.vision_v1p3beta1"
|
||||||
|
"google.cloud.vision_v1p4beta1"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Cloud Vision API API client library";
|
description = "Cloud Vision API API client library";
|
||||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
homepage = "https://github.com/googleapis/python-vision";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user