Unverified Commit 871e9f49 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.python-roborock: replace async-timeout with asyncio.timeout (#451558)

parents 90604077 81173331
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -4,12 +4,12 @@
  aiohttp,
  aiomqtt,
  aioresponses,
  async-timeout,
  buildPythonPackage,
  click,
  construct,
  dacite,
  fetchFromGitHub,
  fetchpatch,
  freezegun,
  paho-mqtt,
  poetry-core,
@@ -40,6 +40,16 @@ buildPythonPackage rec {
    hash = "sha256-66kSNkivq6BHnqIqx1INtdoysBJfCqV76yIAJiHmfxQ=";
  };

  patches = [
    # https://github.com/Python-roborock/python-roborock/pull/527
    (fetchpatch {
      name = "replace async-timeout with asyncio.timeout.patch";
      url = "https://github.com/Python-roborock/python-roborock/commit/f376027f5933e163441cf1815b820056731a3632.patch";
      excludes = [ "poetry.lock" ];
      hash = "sha256-53xsQ3yxh9CilC9hNS31rDXZVFG+mMhe7ffOb4L6bUE=";
    })
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "poetry-core==1.8.0" "poetry-core"
@@ -52,7 +62,6 @@ buildPythonPackage rec {
  dependencies = [
    aiohttp
    aiomqtt
    async-timeout
    click
    construct
    dacite