Subject: [PATCH rust-team v3 52/75] gnu: Add rust-gstreamer-base-0.21.

From: Herman Rimm <[email-masked]>
Date: Sat, 4 May 2024 13:35:24 +0200

* gnu/packages/crates-gtk.scm (rust-gstreamer-base-0.21): Add variable.
(rust-gstreamer-base-0.18): Inherit from rust-gstreamer-base-0.21.

Change-Id: I15f0726dc46c251c3799cdc591c10b99d1f5baff
---
 gnu/packages/crates-gtk.scm | 53 ++++++++++++++++++++++++++++---------
 1 file changed, 41 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index 14f10783f0..9f8a7ae8fa 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -2453,34 +2453,63 @@ (define-public rust-gstreamer-audio-sys-0.18
     (description "FFI bindings to libgstaudio, part of Gstreamer.")
     (license license:expat)))
 
-(define-public rust-gstreamer-base-0.18
+(define-public rust-gstreamer-base-0.21
   (package
     (name "rust-gstreamer-base")
-    (version "0.18.0")
+    (version "0.21.2")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "gstreamer-base" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0gw6sr75h01y3j6lpxhc7p1frvkba9a4imyyb2ppqh42cprkakr2"))))
+        (base32 "0zqnld0w2jqkz1m5xna3a3nnrpvrchpcrrzdgwim54540ilhn5fb"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:tests? #f  ; https://github.com/gtk-rs/gtk3-rs/issues/768
-       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-1)
-                       ("rust-cfg-if" ,rust-cfg-if-1)
-                       ("rust-glib" ,rust-glib-0.15)
-                       ("rust-gstreamer" ,rust-gstreamer-0.18)
-                       ("rust-gstreamer-base-sys" ,rust-gstreamer-base-sys-0.18)
-                       ("rust-libc" ,rust-libc-0.2))
-       #:cargo-development-inputs (("rust-gir-format-check" ,rust-gir-format-check-0.1))))
+     `(#:cargo-test-flags
+       '("--release" "--"
+         "--skip=subclass::base_transform::tests::test_transform_subclass")
+       #:cargo-development-inputs
+       (("rust-gir-format-check" ,rust-gir-format-check-0.1))
+       #:cargo-inputs
+       (("rust-atomic-refcell" ,rust-atomic-refcell-0.1)
+        ("rust-cfg-if" ,rust-cfg-if-1)
+        ("rust-glib" ,rust-glib-0.18)
+        ("rust-gstreamer" ,rust-gstreamer-0.21)
+        ("rust-gstreamer-base-sys" ,rust-gstreamer-base-sys-0.21)
+        ("rust-libc" ,rust-libc-0.2))))
     (native-inputs (list pkg-config))
     (inputs (list glib gstreamer))
     (home-page "https://gstreamer.freedesktop.org")
     (synopsis "Rust bindings for GStreamer Base library")
-    (description "Rust bindings for GStreamer Base library.")
+    (description
+     "This package provides Rust bindings for GStreamer Base library.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-gstreamer-base-0.18
+  (package
+    (inherit rust-gstreamer-base-0.21)
+    (name "rust-gstreamer-base")
+    (version "0.18.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gstreamer-base" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0gw6sr75h01y3j6lpxhc7p1frvkba9a4imyyb2ppqh42cprkakr2"))))
+    (arguments
+     `(#:tests? #f  ; https://github.com/gtk-rs/gtk3-rs/issues/768
+       #:cargo-inputs
+       (("rust-bitflags" ,rust-bitflags-1)
+        ("rust-cfg-if" ,rust-cfg-if-1)
+        ("rust-glib" ,rust-glib-0.15)
+        ("rust-gstreamer" ,rust-gstreamer-0.18)
+        ("rust-gstreamer-base-sys" ,rust-gstreamer-base-sys-0.18)
+        ("rust-libc" ,rust-libc-0.2))
+       #:cargo-development-inputs
+       (("rust-gir-format-check" ,rust-gir-format-check-0.1))))))
+
 (define-public rust-gstreamer-base-sys-0.21
   (package
     (name "rust-gstreamer-base-sys")
-- 
2.41.0