diff mbox series

[bug#74234,PATCHv2,rust-team,15/20] gnu: Add rust-qrcode-generator-4.

Message ID f294c3833647515a773a9962be2519d7a96f4c57.1731018437.git.goodoldpaul@autistici.org
State New
Headers show
Series [bug#74234,PATCHv2,rust-team,01/20] gnu: Add rust-ashpd-0.6. | expand

Commit Message

Giacomo Leidi Nov. 7, 2024, 10:27 p.m. UTC
* gnu/packages/crates-io.scm (rust-qrcode-generator-4): New variable.

Change-Id: Ib253a274940455d701bb06c149856fd01af7ba93
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5fd162e9ff..ac123fe3fa 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -61471,6 +61471,32 @@  (define-public rust-python-pkginfo-0.5
         ("rust-zip" ,rust-zip-0.6))
        #:cargo-development-inputs (("rust-serde-json" ,rust-serde-json-1))))))
 
+(define-public rust-qrcode-generator-4
+  (package
+    (name "rust-qrcode-generator")
+    (version "4.1.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "qrcode-generator" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0ngiwz7mfqfy7g8nh309vq9qqphyybbp890s4fb418f78sbcn1hx"))))
+    (build-system cargo-build-system)
+    (arguments
+     ;; test result: FAILED. 4 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out
+     `(#:tests? #f
+       #:cargo-inputs (("rust-html-escape" ,rust-html-escape-0.2)
+                       ("rust-image" ,rust-image-0.24)
+                       ("rust-qrcodegen" ,rust-qrcodegen-1))
+       #:cargo-development-inputs (("rust-manifest-dir-macros" ,rust-manifest-dir-macros-0.1))))
+    (home-page "https://magiclen.org/qrcode-generator")
+    (synopsis
+     "Generate QR Code matrices and images in RAW, PNG and SVG formats")
+    (description
+     "This package provides Generate QR Code matrices and images in RAW, PNG and SVG formats.")
+    (license license:expat)))
+
 (define-public rust-qrcodegen-1
   (package
     (name "rust-qrcodegen")