guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/68: gnu: Add rust-cssparser-0.33.


From: guix-commits
Subject: 04/68: gnu: Add rust-cssparser-0.33.
Date: Wed, 20 Mar 2024 11:24:23 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit a4b4cef3b4e8e0498c06e050240e4883cac3461c
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Mar 18 15:13:19 2024 +0200

    gnu: Add rust-cssparser-0.33.
    
    * gnu/packages/crates-io.scm (rust-cssparser-0.33): New variable.
    (rust-cssparser-0.29): Inherit from rust-cssparser-0.33.
    
    Change-Id: Icf07789b4d78021f280f72ef0a66a889ebd9b799
---
 gnu/packages/crates-io.scm | 38 +++++++++++++++++++++++++++++++-------
 1 file changed, 31 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a06a199c92..c4d2f57358 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -17093,8 +17093,38 @@ feature flags.")
 number ``crunching``.")
     (license license:expat)))
 
+(define-public rust-cssparser-0.33
+  (package
+    (name "rust-cssparser")
+    (version "0.33.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cssparser" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "07i8k47fmym7kzs95qfhg6zrh4yyf2vl4460rmdyvyx06vck9scv"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f  ; Not all files included in the tarball.
+       #:cargo-inputs (("rust-cssparser-macros" ,rust-cssparser-macros-0.6)
+                       ("rust-dtoa-short" ,rust-dtoa-short-0.3)
+                       ("rust-itoa" ,rust-itoa-1)
+                       ("rust-phf" ,rust-phf-0.8)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-smallvec" ,rust-smallvec-1))
+       #:cargo-development-inputs (("rust-difference" ,rust-difference-2)
+                                   ("rust-encoding-rs" ,rust-encoding-rs-0.8)
+                                   ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://github.com/servo/rust-cssparser";)
+    (synopsis "Rust implementation of CSS Syntax Level 3")
+    (description
+     "This package contains a Rust implementation of CSS Syntax Level 3.")
+    (license license:mpl2.0)))
+
 (define-public rust-cssparser-0.29
   (package
+    (inherit rust-cssparser-0.33)
     (name "rust-cssparser")
     (version "0.29.6")
     (source
@@ -17104,7 +17134,6 @@ number ``crunching``.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1yp0zl5cmw9x95np9a51153fdb1ng8fgzwyssg7hr5dmki0h6ggr"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #f  ; Not all files included in the tarball.
        #:cargo-inputs
@@ -17121,12 +17150,7 @@ number ``crunching``.")
        #:cargo-development-inputs
        (("rust-difference" ,rust-difference-2)
         ("rust-encoding-rs" ,rust-encoding-rs-0.8)
-        ("rust-serde-json" ,rust-serde-json-1))))
-    (home-page "https://github.com/servo/rust-cssparser";)
-    (synopsis "Rust implementation of CSS Syntax Level 3")
-    (description
-     "This package contains a Rust implementation of CSS Syntax Level 3.")
-    (license license:mpl2.0)))
+        ("rust-serde-json" ,rust-serde-json-1))))))
 
 (define-public rust-cssparser-0.28
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]