python3Packages.pyhon-miio: Fix tests with pytest 7.2
and clean up obsolete patches.
This commit is contained in:
parent
a72680c75b
commit
51dadc0764
|
@ -9,10 +9,12 @@
|
||||||
, cryptography
|
, cryptography
|
||||||
, defusedxml
|
, defusedxml
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
, importlib-metadata
|
, importlib-metadata
|
||||||
, micloud
|
, micloud
|
||||||
, netifaces
|
, netifaces
|
||||||
, poetry-core
|
, poetry-core
|
||||||
|
, pytest-asyncio
|
||||||
, pytest-mock
|
, pytest-mock
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
@ -39,6 +41,14 @@ buildPythonPackage rec {
|
||||||
poetry-core
|
poetry-core
|
||||||
];
|
];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
# Fix pytest 7.2 compat
|
||||||
|
url = "https://github.com/rytilahti/python-miio/commit/67d9d771d04d51f5bd97f361ca1c15ae4a18c274.patch";
|
||||||
|
hash = "sha256-Os9vCSKyieCqHs63oX6gcLrtv1N7hbX5WvEurelEp8w=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
android-backup
|
android-backup
|
||||||
appdirs
|
appdirs
|
||||||
|
@ -59,18 +69,11 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
pytest-asyncio
|
||||||
pytest-mock
|
pytest-mock
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--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 = [
|
pythonImportsCheck = [
|
||||||
"miio"
|
"miio"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue