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" ];