From 8e544d1043a43da193719633888bb4229a3b7ed4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 19 Feb 2022 22:05:57 +0100 Subject: [PATCH] python3Packages.python-miio: 0.5.9.2 -> 0.5.10 --- .../python-modules/python-miio/default.nix | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/python-miio/default.nix b/pkgs/development/python-modules/python-miio/default.nix index 24c51af4fb2e..4095ff9285c4 100644 --- a/pkgs/development/python-modules/python-miio/default.nix +++ b/pkgs/development/python-modules/python-miio/default.nix @@ -2,7 +2,7 @@ , buildPythonPackage , pythonOlder , fetchPypi -, poetry +, poetry-core , click , cryptography , construct @@ -24,22 +24,18 @@ buildPythonPackage rec { pname = "python-miio"; - version = "0.5.9.2"; - disabled = pythonOlder "3.6.5"; + version = "0.5.10"; format = "pyproject"; + disabled = pythonOlder "3.7"; + src = fetchPypi { inherit pname version; - sha256 = "sha256-AFwarRhFknfwTSvSDGoWE+/mv1KUD2XnWK/xCBqrN4o="; + sha256 = "sha256-6iV+uIdVi0Z3FeM9xnp1Ss3VzFVEOm7wykxjSTXUIGM="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace 'defusedxml = "^0"' 'defusedxml = "*"' \ - ''; - nativeBuildInputs = [ - poetry + poetry-core ]; propagatedBuildInputs = [ @@ -56,14 +52,27 @@ buildPythonPackage rec { pyyaml tqdm zeroconf - ] ++ lib.optional (pythonOlder "3.8") importlib-metadata; + ] ++ lib.optional (pythonOlder "3.8") [ + importlib-metadata + ]; checkInputs = [ pytestCheckHook pytest-mock ]; - pythonImportsCheck = [ "miio" ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'defusedxml = "^0"' 'defusedxml = "*"' \ + ''; + + pythonImportsCheck = [ + "miio" + ]; + + disabledTestPaths = [ + "miio/tests/test_vacuums.py" + ]; meta = with lib; { description = "Python library for interfacing with Xiaomi smart appliances";