diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2022-04-20 16:38:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 16:38:09 +0200 |
commit | b161e729ab3f7902645fa4308b87ec97515e2f25 (patch) | |
tree | fadf0adee98b304adaf74fd910af94e4b02a2957 /pkgs | |
parent | 72a5232b2a48ef086500cbc35235e1dac568e0fb (diff) | |
parent | d386719c7e6ffc5baa14ec5bdf1f1d3350b3da81 (diff) | |
download | nixpkgs-b161e729ab3f7902645fa4308b87ec97515e2f25.tar nixpkgs-b161e729ab3f7902645fa4308b87ec97515e2f25.tar.gz nixpkgs-b161e729ab3f7902645fa4308b87ec97515e2f25.tar.bz2 nixpkgs-b161e729ab3f7902645fa4308b87ec97515e2f25.tar.lz nixpkgs-b161e729ab3f7902645fa4308b87ec97515e2f25.tar.xz nixpkgs-b161e729ab3f7902645fa4308b87ec97515e2f25.tar.zst nixpkgs-b161e729ab3f7902645fa4308b87ec97515e2f25.zip |
Merge pull request #169402 from fabaff/python-miio-fix
python3Packages.python-miio: update decorator
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/python-miio/default.nix | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/python-miio/default.nix b/pkgs/development/python-modules/python-miio/default.nix index c1391995dda..3cbc48c3cd6 100644 --- a/pkgs/development/python-modules/python-miio/default.nix +++ b/pkgs/development/python-modules/python-miio/default.nix @@ -1,24 +1,24 @@ { lib +, android-backup +, appdirs +, attrs , buildPythonPackage -, pythonOlder -, fetchPypi -, poetry-core , click -, cryptography , construct -, zeroconf -, attrs -, pytz -, appdirs -, tqdm -, netifaces -, android-backup -, importlib-metadata , 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 = [ |