~ruther/guix-local

6b52644eccec9df65bc48a33f097284c4f19fc11 — Nicolas Graves 7 months ago e4bdc82
gnu: python-mcuboot-imgtool: Switch to pyproject.

* gnu/packages/python-crypto.scm (python-mcuboot-imgtool):
[source]<uri>: Update url.
[build-system]: Switch to pyproject-build-system.
[arguments, description]: Improve style.
[native-inputs]: Add python-pytest, python-setuptools, python-wheel.

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

M gnu/packages/python-crypto.scm
M gnu/packages/python-crypto.scm => gnu/packages/python-crypto.scm +20 -21
@@ 1416,32 1416,31 @@ storing and retrieving sensitive information in your programs.")
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/JuulLabs-OSS/mcuboot")
             (commit (string-append "v" version))))
              (url "https://github.com/mcu-tools/mcuboot")
              (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32
         "1m1csyvzq4jx81zg635ssy1n7sc0z539z0myh872ll3nwqx7wa0q"))))
    (build-system python-build-system)
        (base32 "1m1csyvzq4jx81zg635ssy1n7sc0z539z0myh872ll3nwqx7wa0q"))))
    (build-system pyproject-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'fix-broken-test
           (lambda _
             (substitute* "scripts/imgtool/keys/ed25519_test.py"
               (("raw_sign") "sign_digest"))
             #t))
         (add-before 'build 'change-directory
           (lambda _
             (chdir "scripts")
             #t)))))
    (propagated-inputs
     (list python-click python-intelhex python-cryptography))
     (list
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-broken-test
            (lambda _
              (substitute* "scripts/imgtool/keys/ed25519_test.py"
                (("raw_sign")
                 "sign_digest"))))
          (add-before 'build 'change-directory
            (lambda _
              (chdir "scripts"))))))
    (native-inputs (list python-pytest python-setuptools python-wheel))
    (propagated-inputs (list python-click python-intelhex python-cryptography))
    (home-page "https://mcuboot.com")
    (synopsis "Tool to securely sign firmware images for booting by MCUboot")
    (description "MCUboot is a secure bootloader for 32-bit MCUs.  This
package provides a tool to securely sign firmware images for booting by
MCUboot.")
    (description
     "MCUboot is a secure bootloader for 32-bit MCUs.  This package provides a
tool to securely sign firmware images for booting by MCUboot.")
    (license license:expat)))

(define-public python-ntlm-auth