diff options
author | Petr Hodina <phodina@protonmail.com> | 2022-01-13 00:01:46 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2022-01-13 00:03:37 +0100 |
commit | 09adf9c9833de28f4a363c28ec587c598b7015de (patch) | |
tree | eaaacfb5e725c19139e8bfd5e5901e7e7b3ec6e8 /gnu/packages | |
parent | d8a36fe544bfbfa37781ac6a1d8b5d49a969fee9 (diff) | |
download | guix-09adf9c9833de28f4a363c28ec587c598b7015de.tar.gz guix-09adf9c9833de28f4a363c28ec587c598b7015de.zip |
gnu: Add python-miio.
* gnu/packages/android.scm (python-miio): New variable.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/android.scm | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index 2174dd55db..7bbb2314b1 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -55,7 +55,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) @@ -924,6 +926,54 @@ useful for reverse engineering, analysis of Android applications and more.") backups. It 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) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "miio"))))))) + (native-inputs + (list python-pytest + python-pytest-mock + python-sphinx + python-sphinx-click + python-sphinx-rtd-theme + python-sphinxcontrib-apidoc)) + (propagated-inputs + (list python-android-backup + python-appdirs + python-attrs + python-click + python-construct + python-croniter + python-cryptography + python-defusedxml + python-importlib-metadata + python-netifaces + python-pytz + python-pyyaml + python-tqdm + 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") |