diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-01-06 10:46:48 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-01-06 23:59:50 +0100 |
commit | ac391fdc0bad04e7c83c53eb2ef527c8bc9d16cb (patch) | |
tree | 4c3d2acf80ff6876cf447dc6c144c6fe8079986a /pkgs/development/python-modules/google-cloud-iot | |
parent | 692345a57070f2a03b59ac66b62872717b3b2d99 (diff) |
pythonPackages:google*: Noramlize names by replacing _ with -
Diffstat (limited to 'pkgs/development/python-modules/google-cloud-iot')
-rw-r--r-- | pkgs/development/python-modules/google-cloud-iot/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/google-cloud-iot/default.nix b/pkgs/development/python-modules/google-cloud-iot/default.nix new file mode 100644 index 0000000000000..7e8a224256d16 --- /dev/null +++ b/pkgs/development/python-modules/google-cloud-iot/default.nix @@ -0,0 +1,42 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, grpc_google_iam_v1 +, google-api-core +, libcst +, proto-plus +, pytestCheckHook +, pytest-asyncio +, mock +}: + +buildPythonPackage rec { + pname = "google-cloud-iot"; + version = "2.0.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "08spn5g0s386x21dgwb46na8aknbwq5d1sn8bh6kayk9fjfbxwla"; + }; + + propagatedBuildInputs = [ grpc_google_iam_v1 google-api-core libcst proto-plus ]; + + checkInputs = [ mock pytestCheckHook pytest-asyncio ]; + + disabledTests = [ + # requires credentials + "test_list_device_registries" + ]; + + pythonImportsCheck = [ + "google.cloud.iot" + "google.cloud.iot_v1" + ]; + + meta = with stdenv.lib; { + description = "Cloud IoT API API client library"; + homepage = "https://github.com/googleapis/python-iot"; + license = licenses.asl20; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} |