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:
commit
c142147280
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue