pythonPackages.google_cloud_iot: Fix depedencies, cleanups
This commit is contained in:
parent
baa35df4e1
commit
7a6095501d
@ -1,10 +1,12 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, enum34
|
|
||||||
, grpc_google_iam_v1
|
, grpc_google_iam_v1
|
||||||
, google_api_core
|
, google_api_core
|
||||||
, pytest
|
, libcst
|
||||||
|
, proto-plus
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-asyncio
|
||||||
, mock
|
, mock
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -14,20 +16,27 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "8af2be9c74697a350d5cc8ead00ae6cb4e85943564f1d782e8060d0d5eb15723";
|
sha256 = "08spn5g0s386x21dgwb46na8aknbwq5d1sn8bh6kayk9fjfbxwla";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
propagatedBuildInputs = [ grpc_google_iam_v1 google_api_core libcst proto-plus ];
|
||||||
propagatedBuildInputs = [ enum34 grpc_google_iam_v1 google_api_core ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [ mock pytestCheckHook pytest-asyncio ];
|
||||||
pytest tests/unit
|
|
||||||
'';
|
disabledTests = [
|
||||||
|
# requires credentials
|
||||||
|
"test_list_device_registries"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"google.cloud.iot"
|
||||||
|
"google.cloud.iot_v1"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Cloud IoT API API client library";
|
description = "Cloud IoT API API client library";
|
||||||
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
homepage = "https://github.com/googleapis/python-iot";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
# maintainers = [ maintainers. ];
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user