summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-05-22 17:18:25 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-08-14 19:37:57 +0300
commit2394ffd5577905efdb7419a2a0d6d4884359e340 (patch)
tree74fb07fac7191ac608c9c1e7212a4ddd6dfb8415 /gnu
parent2f0e4348029990af6826e1bf465aaa43f389fcd3 (diff)
gnu: rust-tera-1: Update to 1.18.1.
* gnu/packages/crates-io.scm (rust-tera-1): Update to 1.18.1. [source]: Add snippet to allow newer versions of dependencies. [arguments]: Don't skip build. Add cargo-test-flags. [cargo-inputs]: Replace rust-humantime-1 with 2. [cargo-development-inputs]: Add rust-pretty-assertions-1, rust-serde-derive-1.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm25
1 files changed, 20 insertions, 5 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d059fde10c..908f6f868b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -64162,22 +64162,33 @@ directories.")
(define-public rust-tera-1
(package
(name "rust-tera")
- (version "1.15.0")
+ (version "1.18.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "tera" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "13dmx1qfn66v55l54gddp89mi82ghszwml9jyv75phhmnqqwijnk"))))
+ (base32 "1h3hgixby1vsfgk83ww09aq25p74jhqf48b7ql1jmwh22dsnb9lm"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin (substitute* "Cargo.toml"
+ (("\"=([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+ (string-append "\"^" version)))))))
(build-system cargo-build-system)
(arguments
- `(#:skip-build? #t
+ `(#:cargo-test-flags
+ (list "--release" "--"
+ ;; Not all files included.
+ "--skip=tera::tests::full_reload_with_glob"
+ "--skip=tera::tests::full_reload_with_glob_after_extending"
+ "--skip=tera::tests::can_load_from_glob_with_patterns"
+ "--skip=tera::tests::can_load_from_glob")
#:cargo-inputs
(("rust-chrono" ,rust-chrono-0.4)
("rust-chrono-tz" ,rust-chrono-tz-0.6)
("rust-globwalk" ,rust-globwalk-0.8)
- ("rust-humansize" ,rust-humansize-1)
+ ("rust-humansize" ,rust-humansize-2)
("rust-lazy-static" ,rust-lazy-static-1)
("rust-percent-encoding" ,rust-percent-encoding-2)
("rust-pest" ,rust-pest-2)
@@ -64187,7 +64198,11 @@ directories.")
("rust-serde" ,rust-serde-1)
("rust-serde-json" ,rust-serde-json-1)
("rust-slug" ,rust-slug-0.1)
- ("rust-unic-segment" ,rust-unic-segment-0.9))))
+ ("rust-unic-segment" ,rust-unic-segment-0.9))
+ #:cargo-development-inputs
+ (("rust-pretty-assertions" ,rust-pretty-assertions-1)
+ ("rust-serde-derive" ,rust-serde-derive-1)
+ ("rust-tempfile" ,rust-tempfile-3))))
(home-page "https://tera.netlify.com/")
(synopsis "Template engine based on Jinja2/Django templates")
(description