Unverified Commit baac3141 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #233763 from fabaff/pysnooz-bump

python311Packages.pysnooz: 0.8.3 -> 0.8.4
parents 3922924e b3c7ae8a
Loading
Loading
Loading
Loading
+2 −13
Original line number Diff line number Diff line
@@ -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"' \