2018-11-02 19:42:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, enum34
|
|
|
|
, grpc_google_iam_v1
|
|
|
|
, google_api_core
|
|
|
|
, pytest
|
2019-02-03 10:56:30 +00:00
|
|
|
, mock
|
2018-11-02 19:42:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-cloud-iot";
|
2020-06-06 07:47:10 +01:00
|
|
|
version = "1.0.0";
|
2018-11-02 19:42:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:10 +01:00
|
|
|
sha256 = "bfd1511a7bcc7d23c2ea30253dd86b2b2247576d1345d895d7153dc0b262f06e";
|
2018-11-02 19:42:52 +00:00
|
|
|
};
|
|
|
|
|
2019-02-03 10:56:30 +00:00
|
|
|
checkInputs = [ pytest mock ];
|
2018-11-02 19:42:52 +00:00
|
|
|
propagatedBuildInputs = [ enum34 grpc_google_iam_v1 google_api_core ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/unit
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cloud IoT API API client library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
2018-11-02 19:42:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
# maintainers = [ maintainers. ];
|
|
|
|
};
|
|
|
|
}
|