Merge pull request #233763 from fabaff/pysnooz-bump

python311Packages.pysnooz: 0.8.3 -> 0.8.4
This commit is contained in:
Fabian Affolter 2023-05-24 12:05:25 +02:00 committed by GitHub
commit baac3141de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,6 @@
, buildPythonPackage
, events
, fetchFromGitHub
, fetchpatch
, freezegun
, home-assistant-bluetooth
, poetry-core
@ -18,7 +17,7 @@
buildPythonPackage rec {
pname = "pysnooz";
version = "0.8.3";
version = "0.8.4";
format = "pyproject";
disabled = pythonOlder "3.9";
@ -27,19 +26,9 @@ buildPythonPackage rec {
owner = "AustinBrunkhorst";
repo = pname;
rev = "v${version}";
hash = "sha256-K99sE9vxJo6grkp04DmTKOVqdfpQI0kUzJjSR6gnSew=";
hash = "sha256-PrjDGBmdYN5qWUh5fvtq1yOMa/Lobq181C2RNfwfARI=";
};
patches = [
(fetchpatch {
# fix tests against bleak 0.20.0+
# https://github.com/AustinBrunkhorst/pysnooz/pull/9
name = "pysnooz-bleak-0.20.0-compat.patch";
url = "https://github.com/AustinBrunkhorst/pysnooz/commit/594951051ceb40003975e61d64cfc683188d87d3.patch";
hash = "sha256-cWQt9V9IOB0YoW5zUR0PBTqS0a30fMTHpXH6CxWKRcc=";
})
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'transitions = "^0.8.11"' 'transitions = ">0.8.11"' \