me
/
guix
Archived
1
0
Fork 0

gnu: python-miio: Update to 0.5.11.

* gnu/packages/android.scm (python-miio): Update to 0.5.11.
[phases]{relax-requirements}: New phase.
{adjust-for-click-8}: Likewise.
{check}: Remove extraneous add-installed-pythonpath call, INPUTS and OUTPUTS
arguments.  Invoke pytest with -vv.
master
Maxim Cournoyer 2022-04-19 21:52:21 -04:00
parent 3ddeaf90a6
commit fa84f9bce9
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 16 additions and 6 deletions

View File

@ -4,7 +4,7 @@
;;; Copyright © 2016, 2020 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2016, 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu> ;;; Copyright © 2017 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com> ;;; Copyright © 2017 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2017, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2017, 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 20182021 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 20182021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2019, 2020 Andreas Enge <andreas@enge.fr> ;;; Copyright © 2019, 2020 Andreas Enge <andreas@enge.fr>
@ -1078,23 +1078,33 @@ backups. It supports encrypted archives.")
(define-public python-miio (define-public python-miio
(package (package
(name "python-miio") (name "python-miio")
(version "0.5.8") (version "0.5.11")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "python-miio" version)) (uri (pypi-uri "python-miio" version))
(sha256 (sha256
(base32 (base32
"0a4f5ybjvibawwxcjm3r9nnrzf1yff6wwgy05yzyk0bb3rmc99fp")))) "1dyzzywfa5h6q8clmzxsqmszlby8757ajmvkhdyvq6719z4bn46n"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
(substitute* "setup.py"
(("cryptography>=35")
"cryptography"))))
(add-after 'unpack 'adjust-for-click-8
(lambda _
(substitute* '("miio/integrations/vacuum/roborock/vacuum.py"
"miio/integrations/vacuum/roborock/vacuum_cli.py")
(("resultcallback")
"result_callback"))))
(replace 'check (replace 'check
(lambda* (#:key inputs outputs tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(add-installed-pythonpath inputs outputs) (invoke "pytest" "-vv" "miio")))))))
(invoke "pytest" "miio")))))))
(native-inputs (native-inputs
(list python-pytest (list python-pytest
python-pytest-mock python-pytest-mock