python3Packages.python-miio: 0.5.4 -> 0.5.5.1
This commit is contained in:
parent
50a392a4fe
commit
0285851c4e
@ -1,46 +1,70 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, appdirs
|
, poetry
|
||||||
, click
|
, click
|
||||||
, construct
|
|
||||||
, croniter
|
|
||||||
, cryptography
|
, cryptography
|
||||||
, importlib-metadata
|
, construct
|
||||||
, pytest
|
|
||||||
, pytest-mock
|
|
||||||
, zeroconf
|
, zeroconf
|
||||||
, attrs
|
, attrs
|
||||||
, pytz
|
, pytz
|
||||||
|
, appdirs
|
||||||
, tqdm
|
, tqdm
|
||||||
, netifaces
|
, netifaces
|
||||||
|
, android-backup
|
||||||
|
, importlib-metadata
|
||||||
|
, croniter
|
||||||
|
, defusedxml
|
||||||
|
, pytestCheckHook
|
||||||
|
, pytest-mock
|
||||||
|
, pyyaml
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-miio";
|
pname = "python-miio";
|
||||||
version = "0.5.4";
|
version = "0.5.5.1";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "5a6fd3bb2cc2f75cdfe5673f36a5a418144d08add6e53b384cb146e99f27bd39";
|
sha256 = "sha256-3IBObrytkn6rLUT+wMlwzreqQ4AfCgxiMTJm2Iwm+5E=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace pyproject.toml \
|
||||||
--replace "zeroconf>=0.25.1,<0.26.0" "zeroconf"
|
--replace 'croniter = "^0"' 'croniter = "*"' \
|
||||||
substituteInPlace setup.py \
|
--replace 'defusedxml = "^0.6"' 'defusedxml = "*"'
|
||||||
--replace "pytz>=2019.3,<2020.0" "pytz"
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "cryptography>=2.9,<3.0" "cryptography"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [ pytest pytest-mock];
|
nativeBuildInputs = [
|
||||||
propagatedBuildInputs = [ appdirs click construct croniter cryptography importlib-metadata zeroconf attrs pytz tqdm netifaces ];
|
poetry
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
propagatedBuildInputs = [
|
||||||
pytest
|
click
|
||||||
'';
|
cryptography
|
||||||
|
construct
|
||||||
|
zeroconf
|
||||||
|
attrs
|
||||||
|
pytz
|
||||||
|
appdirs
|
||||||
|
tqdm
|
||||||
|
netifaces
|
||||||
|
android-backup
|
||||||
|
croniter
|
||||||
|
defusedxml
|
||||||
|
] ++ lib.optional (pythonOlder "3.8") importlib-metadata;
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
pytest-mock
|
||||||
|
pyyaml
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python library for interfacing with Xiaomi smart appliances";
|
description = "Python library for interfacing with Xiaomi smart appliances";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user