Merge pull request #160948 from fabaff/bump-python-miio

python3Packages.python-miio: 0.5.9.2 -> 0.5.10
This commit is contained in:
Fabian Affolter 2022-02-20 12:23:21 +01:00 committed by GitHub
commit c142147280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";