From d757369602f78ab45f4f1a4af3818e9a76954aac Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 18 Jan 2022 09:48:35 +0100 Subject: [PATCH] python3Packages.google-nest-sdm: 1.3.0 -> 1.5.1 --- .../python-modules/google-nest-sdm/default.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/google-nest-sdm/default.nix b/pkgs/development/python-modules/google-nest-sdm/default.nix index 27211ed2095c..02a0f6f08d93 100644 --- a/pkgs/development/python-modules/google-nest-sdm/default.nix +++ b/pkgs/development/python-modules/google-nest-sdm/default.nix @@ -1,19 +1,21 @@ { lib , aiohttp +, asynctest , buildPythonPackage +, coreutils , fetchFromGitHub , google-auth , google-auth-oauthlib , google-cloud-pubsub -, pythonOlder -, requests_oauthlib , pytest-aiohttp , pytestCheckHook +, pythonOlder +, requests_oauthlib }: buildPythonPackage rec { pname = "google-nest-sdm"; - version = "1.3.0"; + version = "1.5.1"; format = "setuptools"; disabled = pythonOlder "3.8"; @@ -22,7 +24,7 @@ buildPythonPackage rec { owner = "allenporter"; repo = "python-google-nest-sdm"; rev = version; - sha256 = "sha256-E0e4lLUBzHKA3clmb/JUBE0KGciQ1xrmLTSeSkGDsWo="; + sha256 = "sha256-8Y3ixkDl/AmXQMOY+29og5njMh9M2qjwWBGCsiqX5PU="; }; propagatedBuildInputs = [ @@ -34,10 +36,17 @@ buildPythonPackage rec { ]; checkInputs = [ + asynctest + coreutils pytest-aiohttp pytestCheckHook ]; + postPatch = '' + substituteInPlace tests/event_media_test.py \ + --replace "/bin/echo" "${coreutils}/bin/echo" + ''; + pythonImportsCheck = [ "google_nest_sdm" ];