Subject: [bug#69257] [PATCH rust-team v3 14/75] gnu: Add rust-libspa-0.7.

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

* gnu/packages/crates-io.scm (rust-libspa-0.7): Add variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 48eefc7ee6..53f0ea21bc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -38926,6 +38926,34 @@ (define-public rust-libspa-0.8
     (description "This package provides Rust bindings for libspa.")
     (license license:expat)))
 
+(define-public rust-libspa-0.7
+  (package
+    (inherit rust-libspa-0.8)
+    (name "rust-libspa")
+    (version "0.7.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libspa" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1i58ayw50brjh1a7gzfs9ijwl42lqmq2k4b7c2w1ijnx41q62d04"))))
+    (arguments
+     `(#:cargo-test-flags
+       '("--release" "--" "--skip=result::tests::async_seq_panic")
+       #:cargo-development-inputs
+       (("rust-pipewire" ,rust-pipewire-0.7)
+        ("rust-pipewire-sys" ,rust-pipewire-sys-0.7))
+       #:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
+                       ("rust-cc" ,rust-cc-1)
+                       ("rust-convert-case" ,rust-convert-case-0.6)
+                       ("rust-cookie-factory" ,rust-cookie-factory-0.3)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-libspa-sys" ,rust-libspa-sys-0.7)
+                       ("rust-nix" ,rust-nix-0.26)
+                       ("rust-nom" ,rust-nom-7)
+                       ("rust-system-deps" ,rust-system-deps-6))))))
+
 (define-public rust-libspa-sys-0.8
   (package
     (name "rust-libspa-sys")
-- 
2.41.0