[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/04: gnu: Add rust-itertools-0.9.
From: |
guix-commits |
Subject: |
04/04: gnu: Add rust-itertools-0.9. |
Date: |
Thu, 9 Jul 2020 15:20:05 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 378159375be3c95d0ec00efa557bb0b36f7d3be8
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Jul 9 22:14:26 2020 +0300
gnu: Add rust-itertools-0.9.
* gnu/packages/crates-io.scm (rust-itertools-0.9): New variable.
(rust-itertools-0.8): Inherit from rust-itertools-0.9.
---
gnu/packages/crates-io.scm | 48 +++++++++++++++++++++++++++++++++++++---------
1 file changed, 39 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f9ba452..263e00b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -11049,8 +11049,46 @@ immutable interval tree.")
(description "Parsing ISO8601 dates using nom.")
(license license:expat)))
+(define-public rust-itertools-0.9
+ (package
+ (name "rust-itertools")
+ (version "0.9.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "itertools" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0jyml7ygr7kijkcjdl3fk5f34y5h5jsavclim7l13zjiavw1hkr8"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-either" ,rust-either-1.5))
+ #:cargo-development-inputs
+ (("rust-criterion" ,rust-criterion-0.3)
+ ("rust-permutohedron" ,rust-permutohedron-0.2)
+ ("rust-quickcheck" ,rust-quickcheck-0.9)
+ ("rust-rand" ,rust-rand-0.7))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-cargo-toml
+ (lambda _
+ (substitute* "Cargo.toml"
+ (("=0.3.0") "0.3"))
+ #t)))))
+ (home-page
+ "https://github.com/rust-itertools/itertools")
+ (synopsis
+ "Extra iterator adaptors, iterator methods, free functions, and macros")
+ (description
+ "Extra iterator adaptors, iterator methods, free functions, and macros.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-itertools-0.8
(package
+ (inherit rust-itertools-0.9)
(name "rust-itertools")
(version "0.8.2")
(source
@@ -11062,7 +11100,6 @@ immutable interval tree.")
(sha256
(base32
"1154j48aw913v5jnyhpxialxhdn2sfpl4d7bwididyb1r05jsspm"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
@@ -11070,14 +11107,7 @@ immutable interval tree.")
#:cargo-development-inputs
(("rust-permutohedron" ,rust-permutohedron-0.2)
("rust-quickcheck" ,rust-quickcheck-0.7)
- ("rust-rand" ,rust-rand-0.6))))
- (home-page
- "https://github.com/rust-itertools/itertools")
- (synopsis
- "Extra iterator adaptors, iterator methods, free functions, and macros")
- (description
- "Extra iterator adaptors, iterator methods, free functions, and macros.")
- (license (list license:expat license:asl2.0))))
+ ("rust-rand" ,rust-rand-0.6))))))
(define-public rust-itertools-0.7
(package