From e9e38bf06c1970a3867da7633b5ac0a2ff6e6bc9 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 31 Mar 2024 14:58:00 +0300 Subject: [PATCH] gnu: Add rust-human-date-parser-0.1. * gnu/packages/crates-io.scm (rust-human-date-parser-0.1): New variable. Change-Id: I910d9c24d56ed2c0fec0af794facee044d253a18 --- gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index fe0f6eabdd..82cbe67ada 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -31803,6 +31803,31 @@ characters in HTML, decoding and unescaping HTML entities as well.") and traversing, manipulating, and querying the document tree.") (license license:expat))) +(define-public rust-human-date-parser-0.1 + (package + (name "rust-human-date-parser") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "human-date-parser" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1g7hlbayw3jknj010jhrcxscyrgpz2s08q3v74337h7xs4x5pmlj")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; use of undeclared crate or module `concat_idents` + #:cargo-inputs (("rust-chrono" ,rust-chrono-0.4) + ("rust-pest" ,rust-pest-2) + ("rust-pest-derive" ,rust-pest-derive-2) + ("rust-thiserror" ,rust-thiserror-1)))) + (home-page "https://github.com/technologicalMayhem/human-date-parser") + (synopsis "Parse human-readable strings that express dates") + (description + "This package parses strings that express dates in a human way into ones +usable by code.") + (license license:expat))) + (define-public rust-human-format-1 (package (name "rust-human-format")