aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/python-miio/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/python-miio/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/python-miio/default.nix21
1 files changed, 17 insertions, 4 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/python-miio/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/python-miio/default.nix
index abce18c8841a..136483761cf8 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/python-miio/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/python-miio/default.nix
@@ -4,8 +4,11 @@
, appdirs
, click
, construct
+, croniter
, cryptography
+, importlib-metadata
, pytest
+, pytest-mock
, zeroconf
, attrs
, pytz
@@ -13,17 +16,27 @@
, netifaces
}:
+
buildPythonPackage rec {
pname = "python-miio";
- version = "0.5.3";
+ version = "0.5.4";
src = fetchPypi {
inherit pname version;
- sha256 = "3be5275b569844dfa267c80a1e23dc0957411dd501cae0ed3cccf43467031ceb";
+ sha256 = "5a6fd3bb2cc2f75cdfe5673f36a5a418144d08add6e53b384cb146e99f27bd39";
};
- checkInputs = [ pytest ];
- propagatedBuildInputs = [ appdirs click construct cryptography zeroconf attrs pytz tqdm netifaces ];
+ postPatch = ''
+ 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 = ''
pytest