3
0
Fork 0
forked from mirrors/nixpkgs

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 , buildPythonPackage
, pythonOlder , pythonOlder
, fetchPypi , fetchPypi
, poetry , poetry-core
, click , click
, cryptography , cryptography
, construct , construct
@ -24,22 +24,18 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "python-miio"; pname = "python-miio";
version = "0.5.9.2"; version = "0.5.10";
disabled = pythonOlder "3.6.5";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-AFwarRhFknfwTSvSDGoWE+/mv1KUD2XnWK/xCBqrN4o="; sha256 = "sha256-6iV+uIdVi0Z3FeM9xnp1Ss3VzFVEOm7wykxjSTXUIGM=";
}; };
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'defusedxml = "^0"' 'defusedxml = "*"' \
'';
nativeBuildInputs = [ nativeBuildInputs = [
poetry poetry-core
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -56,14 +52,27 @@ buildPythonPackage rec {
pyyaml pyyaml
tqdm tqdm
zeroconf zeroconf
] ++ lib.optional (pythonOlder "3.8") importlib-metadata; ] ++ lib.optional (pythonOlder "3.8") [
importlib-metadata
];
checkInputs = [ checkInputs = [
pytestCheckHook pytestCheckHook
pytest-mock pytest-mock
]; ];
pythonImportsCheck = [ "miio" ]; postPatch = ''
substituteInPlace pyproject.toml \
--replace 'defusedxml = "^0"' 'defusedxml = "*"' \
'';
pythonImportsCheck = [
"miio"
];
disabledTestPaths = [
"miio/tests/test_vacuums.py"
];
meta = with lib; { meta = with lib; {
description = "Python library for interfacing with Xiaomi smart appliances"; description = "Python library for interfacing with Xiaomi smart appliances";