Subject: [bug#67515] [PATCH 14/91] gnu: Add rust-pango-0.18.

From: Sergio Pastor Pérez <[email-masked]>
Date: Tue, 28 Nov 2023 22:11:52 +0100

* gnu/packages/crates-graphics.scm (rust-pango-0.18): New variable.

Change-Id: I586c4d00af804d66583ada712ce34a2a0d92e156
---
 gnu/packages/crates-graphics.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 83ace15b92..258fe2447a 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -1860,6 +1860,31 @@ (define-public rust-osmesa-sys-0.1
     (description "This package provides OSMesa library bindings for Rust.")
     (license license:cc0)))
 
+(define-public rust-pango-0.18
+  (package
+    (name "rust-pango")
+    (version "0.18.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pango" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1l82j97pg7hyq2qnflg3lzyza307y8jvi5h02q3340qxhd5yba86"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ; `Errors` doesn't implement `std::fmt::Display`
+       #:cargo-inputs (("rust-gio" ,rust-gio-0.18)
+                       ("rust-glib" ,rust-glib-0.18)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-once-cell" ,rust-once-cell-1)
+                       ("rust-pango-sys" ,rust-pango-sys-0.18))))
+    (native-inputs (list pkg-config pango))
+    (home-page "https://gtk-rs.org/")
+    (synopsis "Rust bindings for the Pango library")
+    (description "Rust bindings for the Pango library")
+    (license license:expat)))
+
 (define-public rust-pango-sys-0.18
   (package
     (name "rust-pango-sys")
-- 
2.41.0