python-miio: fix
This commit is contained in:
parent
3a12f8588a
commit
79e81e8404
@ -4,8 +4,11 @@
|
|||||||
, appdirs
|
, appdirs
|
||||||
, click
|
, click
|
||||||
, construct
|
, construct
|
||||||
|
, croniter
|
||||||
, cryptography
|
, cryptography
|
||||||
|
, importlib-metadata
|
||||||
, pytest
|
, pytest
|
||||||
|
, pytest-mock
|
||||||
, zeroconf
|
, zeroconf
|
||||||
, attrs
|
, attrs
|
||||||
, pytz
|
, pytz
|
||||||
@ -13,6 +16,7 @@
|
|||||||
, netifaces
|
, netifaces
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-miio";
|
pname = "python-miio";
|
||||||
version = "0.5.3";
|
version = "0.5.3";
|
||||||
@ -22,8 +26,17 @@ buildPythonPackage rec {
|
|||||||
sha256 = "3be5275b569844dfa267c80a1e23dc0957411dd501cae0ed3cccf43467031ceb";
|
sha256 = "3be5275b569844dfa267c80a1e23dc0957411dd501cae0ed3cccf43467031ceb";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
postPatch = ''
|
||||||
propagatedBuildInputs = [ appdirs click construct cryptography zeroconf attrs pytz tqdm netifaces ];
|
substituteInPlace setup.py \
|
||||||
|
--replace "zeroconf>=0.25.1,<0.26.0" "zeroconf"
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "pytz>=2019.3,<2020.0" "pytz"
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "cryptography>=2.9,<3.0" "cryptography"
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [ pytest pytest-mock];
|
||||||
|
propagatedBuildInputs = [ appdirs click construct croniter cryptography importlib-metadata zeroconf attrs pytz tqdm netifaces ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pytest
|
pytest
|
||||||
|
Loading…
Reference in New Issue
Block a user