[bug#74234,rust-team,v3,18/23] gnu: Add rust-qrcode-generator-4.

Message ID 20241209011150.1455224-19-aaron.covrig.us@ieee.org
State New
Headers
Series WIP add gnome-authenticator |

Commit Message

Aaron Covrig Dec. 9, 2024, 1:11 a.m. UTC
  From: Giacomo Leidi <goodoldpaul@autistici.org>

* gnu/packages/crates-io.scm (rust-qrcode-generator-4): New variable.

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

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bf15f893a3..94f9228117 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -62929,6 +62929,36 @@  (define-public rust-qrcode-0.14
     (description "QR code and Micro QR code encoder in Rust.")
     (license (list license:expat license:asl2.0))))
 
+(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
+     `(#:cargo-test-flags '("--"
+                            ;; Missing files
+                            "--skip=src/lib.rs - (line 51)"
+                            "--skip=src/lib.rs - (line 31)")
+       #: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-qrencode-0.14
   (package
     (name "rust-qrencode")