~ruther/guix-local

510439430ee08f32938221f6563a1f62f6714f25 — Nicolas Graves 1 year, 3 months ago fef4512
gnu: python-esptool: Update to 5.0.1.

* gnu/packages/engineering.scm (python-esptool): Update to 5.0.1.
[source]: Switch to git-fetch (brings in tests, version management is
better in the repository too).
[build-system]: Switch to pyproject-build-system.
[arguments]: Disable failing tests.
[propagated-inputs]: Add python-click, python-intelhex, python-pyyaml,
python-rich-click-next.
[native-inputs]: Add python-pyelftools, python-pytest,
python-setuptools, python-wheel.

Change-Id: Ia9b16a338661265b799b543e2de82963c49e1e26
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 32 insertions(+), 8 deletions(-)

M gnu/packages/engineering.scm
M gnu/packages/engineering.scm => gnu/packages/engineering.scm +32 -8
@@ 2203,18 2203,42 @@ multiple services and devices with hundreds of supported integrations.")
(define-public python-esptool
  (package
    (name "python-esptool")
    (version "3.0")
    (version "5.0.1")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "esptool" version))
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/espressif/esptool")
              (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32
         "0d69rd9h8wrzjvfrc66vmz4qd5hly2fpdcwj2bdrlb7dbwikv5c7"))))
    (build-system python-build-system)
        (base32 "04asqw6g4lhkz6fqn22wwk2wjq5q8c00m2k8wylksrc0v2f582i9"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-flags
      #~(list
         ;; XXX: Requires python2 package pkcs11.
         "--ignore=test/test_espsecure_hsm.py"
         ;; XXX: Requires python-requests, most likely to use network.
         "--ignore=test/test_uf2_ids.py"
         ;; XXX: Various errors (device access, server not started...)
         "--ignore=test/test_esptool.py"
         ;; XXX: "not supported by this version of OpenSSL"
         "-k" "not test_sign_v1_data and not test_sign_v1_data_pkcs8")))
    (propagated-inputs
     (list python-ecdsa python-pyaes python-pyserial python-reedsolo
           python-cryptography python-bitstring))
     (list python-bitstring
           python-click
           python-cryptography
           python-intelhex
           python-pyserial
           python-pyyaml
           python-reedsolo
           python-rich-click-next))
    (native-inputs (list python-pyelftools
                         python-pytest
                         python-setuptools
                         python-wheel))
    (home-page "https://github.com/espressif/esptool")
    (synopsis "Bootloader utility for Espressif ESP8266 & ESP32 chips")
    (description