diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2020-07-06 20:00:36 +0300 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-07-06 21:54:04 +0300 |
commit | 8285f31068b1923364a1447820780a8ff83efec9 (patch) | |
tree | cb4d416ef760c1793c1dc93c9023de056ffed252 | |
parent | 13115e0a539207e49edc078640c78ed4f47824da (diff) |
gnu: Add rust-cssparser-0.27.
* gnu/packages/crates-io.scm (rust-cssparser-0.27): New variable.
(rust-cssparser-0.25): Inherit from rust-cssparser-0.27.
-rw-r--r-- | gnu/packages/crates-io.scm | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 43cc3cd257..0f8df3baba 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -4471,8 +4471,46 @@ Code} (MAC) algorithms.") ("rust-generic-array" ,rust-generic-array-0.12) ("rust-subtle" ,rust-subtle-1.0)))))) +(define-public rust-cssparser-0.27 + (package + (name "rust-cssparser") + (version "0.27.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "cssparser" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "02nbm690rmkaz1ca0383qq7mc1g066w3s85f17pdihnda79njjvm")))) + (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-0.4) + ("rust-matches" ,rust-matches-0.1) + ("rust-phf" ,rust-phf-0.8) + ("rust-proc-macro2" ,rust-proc-macro2-1.0) + ("rust-quote" ,rust-quote-1.0) + ("rust-serde" ,rust-serde-1.0) + ("rust-smallvec" ,rust-smallvec-1) + ("rust-syn" ,rust-syn-1.0)) + #:cargo-development-inputs + (("rust-difference" ,rust-difference-2.0) + ("rust-encoding-rs" ,rust-encoding-rs-0.8) + ("rust-serde-json" ,rust-serde-json-1.0)))) + (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.25 (package + (inherit rust-cssparser-0.27) (name "rust-cssparser") (version "0.25.9") (source @@ -4484,7 +4522,6 @@ Code} (MAC) algorithms.") (sha256 (base32 "03klvpdzsk4cyh8k0dbnlngzafv7gqywqrnsqqb3gfmrxyj8rqgv")))) - (build-system cargo-build-system) (arguments `(#:tests? #f ; Some test files missing. #:cargo-inputs @@ -4504,7 +4541,7 @@ Code} (MAC) algorithms.") #:cargo-development-inputs (("rust-difference" ,rust-difference-2.0) ("rust-encoding-rs" ,rust-encoding-rs-0.8) - ("rust-serde-json" ,rust-serde-json-1.0)))) + ("rust-serde-json" ,rust-serde-json-1.0)))))) (define-public rust-cssparser-macros-0.6 (package |