Subject: [bug#76436] [PATCH python-team 2/3] gnu: Add rust-notify-7.

From: Nicolas Graves <[email-masked]>
Date: Wed, 19 Feb 2025 23:31:28 +0100

* gnu/packages/crates-io.scm (rust-notify-7): New variable.
(rust-notify-6): Inherit from rust-notify-7.
---
 gnu/packages/crates-io.scm | 45 ++++++++++++++++++++++++++++++++------
 1 file changed, 38 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ce284ffcfe..21809ec22b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -47297,8 +47297,45 @@ (define-public rust-normpath-0.2
         ("rust-rustversion" ,rust-rustversion-1)
         ("rust-tempfile" ,rust-tempfile-3))))))
 
+(define-public rust-notify-7
+  (package
+    (name "rust-notify")
+    (version "7.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "notify" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "02a0a1n0raxqslwhfprwmz7w34v54r42006q0m8bmy89jz1v8cy5"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-bitflags-2
+                           rust-crossbeam-channel-0.5
+                           rust-filetime-0.2
+                           rust-fsevent-sys-4
+                           rust-inotify-0.10
+                           rust-kqueue-1
+                           rust-libc-0.2
+                           rust-log-0.4
+                           rust-mio-1
+                           rust-notify-types-1
+                           rust-walkdir-2
+                           rust-windows-sys-0.52)
+      #:cargo-development-inputs (list rust-insta-1
+                                       rust-nix-0.27
+                                       rust-serde-json-1
+                                       rust-tempfile-3)))
+    (home-page "https://github.com/notify-rs/notify")
+    (synopsis "Cross-platform filesystem notification library")
+    (description "This package contains a cross-platform filesystem
+notification library.")
+    (license license:cc0)))
+
 (define-public rust-notify-6
   (package
+    (inherit rust-notify-7)
     (name "rust-notify")
     (version "6.1.1")
     (source
@@ -47308,7 +47345,6 @@ (define-public rust-notify-6
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0bad98r0ilkhhq2jg3zs11zcqasgbvxia8224wpasm74n65vs1b2"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-2)
                        ("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5)
@@ -47324,12 +47360,7 @@ (define-public rust-notify-6
                        ("rust-windows-sys" ,rust-windows-sys-0.48))
        #:cargo-development-inputs (("rust-nix" ,rust-nix-0.23)
                                    ("rust-serde-json" ,rust-serde-json-1)
-                                   ("rust-tempfile" ,rust-tempfile-3))))
-    (home-page "https://github.com/notify-rs/notify")
-    (synopsis "Cross-platform filesystem notification library")
-    (description "This package contains a cross-platform filesystem
-notification library.")
-    (license license:cc0)))
+                                   ("rust-tempfile" ,rust-tempfile-3))))))
 
 (define-public rust-notify-5
   (package
-- 
2.48.1

-- 
Best regards,
Nicolas Graves