about summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-miio
diff options
context:
space:
mode:
authorFlorian <flo@halbmastwurf.de>2020-01-01 13:24:24 +0100
committerJon <jonringer@users.noreply.github.com>2020-01-13 10:34:46 -0800
commitc2997409d3120d63a6db5dd4f093df48fb155c71 (patch)
treee83f58199dfc04423e5b02b99a2d5b94febf4dbd /pkgs/development/python-modules/python-miio
parent775f3e037e0d457471f5042c6d58488b45627c4e (diff)
downloadnixlib-c2997409d3120d63a6db5dd4f093df48fb155c71.tar
nixlib-c2997409d3120d63a6db5dd4f093df48fb155c71.tar.gz
nixlib-c2997409d3120d63a6db5dd4f093df48fb155c71.tar.bz2
nixlib-c2997409d3120d63a6db5dd4f093df48fb155c71.tar.lz
nixlib-c2997409d3120d63a6db5dd4f093df48fb155c71.tar.xz
nixlib-c2997409d3120d63a6db5dd4f093df48fb155c71.tar.zst
nixlib-c2997409d3120d63a6db5dd4f093df48fb155c71.zip
python-miio: init at 0.4.8
Homeassitant uses this package to control Xiaomi Roborock vacuum
cleaners.
Diffstat (limited to 'pkgs/development/python-modules/python-miio')
-rw-r--r--pkgs/development/python-modules/python-miio/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-miio/default.nix b/pkgs/development/python-modules/python-miio/default.nix
new file mode 100644
index 000000000000..eb7c91531965
--- /dev/null
+++ b/pkgs/development/python-modules/python-miio/default.nix
@@ -0,0 +1,39 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, appdirs
+, click
+, construct
+, cryptography
+, pytest
+, zeroconf
+, attrs
+, pytz
+, tqdm
+, netifaces
+}:
+
+buildPythonPackage rec {
+  pname = "python-miio";
+  version = "0.4.8";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "19423b3386b23d2e0fc94a8f6a358bcfbb44eed05376e33fd434d26d168bd18c";
+  };
+
+  checkInputs = [ pytest ];
+  propagatedBuildInputs = [ appdirs click construct cryptography zeroconf attrs pytz tqdm netifaces ];
+
+  checkPhase = ''
+    pytest
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Python library for interfacing with Xiaomi smart appliances";
+    homepage = https://github.com/rytilahti/python-miio;
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ flyfloh ];
+  };
+}
+