Merge pull request #155455 from fabaff/bump-google-nest-sdm

python3Packages.google-nest-sdm: 1.3.0 -> 1.5.1
This commit is contained in:
Fabian Affolter 2022-01-20 22:14:30 +01:00 committed by GitHub
commit a59d3a31c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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