From d386719c7e6ffc5baa14ec5bdf1f1d3350b3da81 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 20 Apr 2022 08:59:18 +0200 Subject: [PATCH] python3Packages.python-miio: update decorator --- .../python-modules/python-miio/default.nix | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/python-miio/default.nix b/pkgs/development/python-modules/python-miio/default.nix index c1391995ddaa..3cbc48c3cd65 100644 --- a/pkgs/development/python-modules/python-miio/default.nix +++ b/pkgs/development/python-modules/python-miio/default.nix @@ -1,24 +1,24 @@ { lib -, buildPythonPackage -, pythonOlder -, fetchPypi -, poetry-core -, click -, cryptography -, construct -, zeroconf -, attrs -, pytz -, appdirs -, tqdm -, netifaces , android-backup -, importlib-metadata +, appdirs +, attrs +, buildPythonPackage +, click +, construct , croniter +, cryptography , defusedxml -, pytestCheckHook +, fetchPypi +, importlib-metadata +, netifaces +, poetry-core , pytest-mock +, pytestCheckHook +, pythonOlder +, pytz , pyyaml +, tqdm +, zeroconf }: @@ -57,13 +57,16 @@ buildPythonPackage rec { ]; checkInputs = [ - pytestCheckHook pytest-mock + pytestCheckHook ]; postPatch = '' substituteInPlace pyproject.toml \ - --replace 'defusedxml = "^0"' 'defusedxml = "*"' \ + --replace 'defusedxml = "^0"' 'defusedxml = "*"' + # Will be fixed with the next release, https://github.com/rytilahti/python-miio/pull/1378 + substituteInPlace miio/integrations/vacuum/roborock/vacuum_cli.py \ + --replace "resultcallback" "result_callback" ''; pythonImportsCheck = [