python3Packages.python-miio: relax click constraint; fix cli

The CLI requires pyyaml which was previously only a checkInput.
This commit is contained in:
Martin Weinelt 2021-06-21 02:17:58 +02:00
parent f30ad55e2d
commit 7af140953b

View file

@ -35,6 +35,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'click = "^7"' 'click = "*"' \
--replace 'croniter = "^0"' 'croniter = "*"' \
--replace 'defusedxml = "^0.6"' 'defusedxml = "*"'
'';
@ -44,24 +45,24 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
click
cryptography
construct
zeroconf
attrs
pytz
appdirs
tqdm
netifaces
android-backup
appdirs
attrs
click
construct
croniter
cryptography
defusedxml
netifaces
pytz
pyyaml
tqdm
zeroconf
] ++ lib.optional (pythonOlder "3.8") importlib-metadata;
checkInputs = [
pytestCheckHook
pytest-mock
pyyaml
];
pythonImportsCheck = [ "miio" ];