guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#50949] [PATCH 5/5] gnu: Add python-miio.


From: phodina
Subject: [bug#50949] [PATCH 5/5] gnu: Add python-miio.
Date: Fri, 01 Oct 2021 19:26:46 +0000

* gnu/packages/android.scm (python-miio): New variable.

diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
index 5c7376c3a4..8697779990 100644
--- a/gnu/packages/android.scm
+++ b/gnu/packages/android.scm
@@ -53,7 +53,9 @@
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages selinux)
   #:use-module (gnu packages serialization)
+  #:use-module (gnu packages sphinx)
   #:use-module (gnu packages ssh)
+  #:use-module (gnu packages time)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages version-control)
   #:use-module (gnu packages virtualization)
@@ -937,6 +939,55 @@ useful for reverse engineering, analysis of Android 
applications and more.")
 Supports encrypted archives.")
     (license license:asl2.0)))

+(define-public python-miio
+  (package
+    (name "python-miio")
+    (version "0.5.8")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "python-miio" version))
+        (sha256
+          (base32
+            "0a4f5ybjvibawwxcjm3r9nnrzf1yff6wwgy05yzyk0bb3rmc99fp"))))
+    (build-system python-build-system)
+    (arguments
+      `(#:phases
+          (modify-phases %standard-phases
+            (replace 'check
+              (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+                (add-installed-pythonpath inputs outputs)
+                (invoke "pytest" "miio"))))))
+    (native-inputs `(("python-pytest" ,python-pytest)
+                     ("python-pytest-mock" ,python-pytest-mock)
+                     ("python-sphinx" ,python-sphinx)
+                     ("python-sphinx-click" ,python-sphinx-click)
+                     ("python-sphinx-rtd-theme"
+                       ,python-sphinx-rtd-theme)
+                     ("python-sphinxcontrib-apidoc"
+                       ,python-sphinxcontrib-apidoc)))
+    (propagated-inputs
+      `(("python-android-backup" ,python-android-backup)
+        ("python-appdirs" ,python-appdirs)
+        ("python-attrs" ,python-attrs)
+        ("python-click" ,python-click)
+        ("python-construct" ,python-construct)
+        ("python-croniter" ,python-croniter)
+        ("python-cryptography" ,python-cryptography)
+        ("python-defusedxml" ,python-defusedxml)
+        ("python-importlib-metadata"
+         ,python-importlib-metadata)
+        ("python-netifaces" ,python-netifaces)
+        ("python-pytz" ,python-pytz)
+        ("python-pyyaml" ,python-pyyaml)
+        ("python-tqdm" ,python-tqdm)
+        ("python-zeroconf" ,python-zeroconf)))
+    (home-page "https://github.com/rytilahti/python-miio";)
+    (synopsis "Control Xiaomi smart appliances")
+    (description "This package provides library and command line interface
+for communicating with Xiaomi smart appliances over miIO and MIoT protocols.")
+    (license license:gpl3+)))
+
 (define-public fdroidserver
   (package
     (name "fdroidserver")
--
2.32.0





reply via email to

[Prev in Thread] Current Thread [Next in Thread]