[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: gnu: rust-average-0.13: Move code changes to snippet.
From: |
guix-commits |
Subject: |
04/07: gnu: rust-average-0.13: Move code changes to snippet. |
Date: |
Wed, 11 May 2022 05:21:39 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 408d78d3ef322bfc274e5d97babf7bcf9baa4966
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed May 11 10:53:51 2022 +0300
gnu: rust-average-0.13: Move code changes to snippet.
* gnu/packages/crates-io.scm (rust-average-0.13)[arguments]: Move code
relaxing version requirements ...
[source]: ... to a snippet.
(rust-nalgebra-0.26, rust-nalgebra-macros-0.1, rust-rand-distr-0.4,
rust-statrs-0.14)[arguments]: Adjust accordingly.
---
gnu/packages/crates-io.scm | 32 +++++++++++++-------------------
1 file changed, 13 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9b593c526e..c3718bea72 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5248,20 +5248,18 @@ they're not available.")
(uri (crate-uri "average" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1c97m8yagvq8r6qgd3harm5vnkdbld4mxg9byyxh6igjsf8wfgl4"))))
+ (base32 "1c97m8yagvq8r6qgd3harm5vnkdbld4mxg9byyxh6igjsf8wfgl4"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (substitute* "Cargo.toml"
+ ;; The resolver feature is not supported by our versions of Cargo.
+ (("resolver = \"2\".*") "")
+ ;; Relax version requirement for byteorder
+ (("=1.3") "^1.3"))))))
(build-system cargo-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'configure 'patch-Cargo.toml
- (lambda _
- (substitute* '("guix-vendor/rust-average-0.13.1.tar.gz/Cargo.toml"
- "Cargo.toml")
- ;; The resolver feature is not supported by this version of
Cargo.
- (("resolver = \"2\".*") "")
- ;; Relax!
- (("1.3") ,(package-version rust-byteorder-1))))))
- #:cargo-inputs
+ `(#:cargo-inputs
(("rust-easy-cast" ,rust-easy-cast-0.4)
("rust-float-ord" ,rust-float-ord-0.3)
("rust-num-traits" ,rust-num-traits-0.2)
@@ -35753,8 +35751,7 @@ quick compile time, and minimal dependencies.")
(add-after 'configure 'patch-Cargo.toml
(lambda _
(substitute* '("Cargo.toml"
-
"guix-vendor/rust-nalgebra-0.26.2.tar.gz/Cargo.toml"
-
"guix-vendor/rust-average-0.13.1.tar.gz/Cargo.toml")
+
"guix-vendor/rust-nalgebra-0.26.2.tar.gz/Cargo.toml")
;; The resolver feature is not supported by this version of
Cargo.
(("resolver = \"2\".*") "")))))
#:cargo-inputs
@@ -35930,8 +35927,7 @@ statically-sized or dynamically-sized matrices.")
(lambda _
(substitute* '("Cargo.toml"
"guix-vendor/rust-nalgebra-macros-0.1.0.tar.gz/Cargo.toml"
-
"guix-vendor/rust-nalgebra-0.26.2.tar.gz/Cargo.toml"
-
"guix-vendor/rust-average-0.13.1.tar.gz/Cargo.toml")
+
"guix-vendor/rust-nalgebra-0.26.2.tar.gz/Cargo.toml")
;; The resolver feature is not supported by this version of
Cargo.
(("resolver = \"2\".*") "")))))
#:cargo-inputs
@@ -46959,8 +46955,7 @@ tools for implementation.")
(modify-phases %standard-phases
(add-after 'configure 'patch-Cargo.toml
(lambda _
- (substitute* '("Cargo.toml"
-
"guix-vendor/rust-average-0.13.1.tar.gz/Cargo.toml")
+ (substitute* "Cargo.toml"
;; The resolver feature is not supported by this version of
Cargo.
(("resolver = \"2\".*") "")))))
#:cargo-inputs
@@ -58246,7 +58241,6 @@ map.")
(add-after 'configure 'patch-Cargo.toml
(lambda _
(substitute* '("Cargo.toml"
- "guix-vendor/rust-average-0.13.1.tar.gz/Cargo.toml"
"guix-vendor/rust-nalgebra-0.26.2.tar.gz/Cargo.toml")
;; The resolver feature is not supported by this version of
Cargo.
(("resolver = \"2\".*") "")))))
- branch master updated (aaa981f7c5 -> 427dbce3a8), guix-commits, 2022/05/11
- 01/07: gnu: rust-parking-lot-core-0.8: Move code changes to snippet., guix-commits, 2022/05/11
- 06/07: gnu: rust-nalgebra-macros-0.1: Move code changes to snippet., guix-commits, 2022/05/11
- 02/07: gnu: rust-proc-macro-error-1: Move code changes to snippet., guix-commits, 2022/05/11
- 03/07: gnu: rust-pyo3-0.15: Adjust version dependency relaxing code., guix-commits, 2022/05/11
- 04/07: gnu: rust-average-0.13: Move code changes to snippet.,
guix-commits <=
- 07/07: gnu: rust-rand-distr-0.4: Move code changes to snippet., guix-commits, 2022/05/11
- 05/07: gnu: rust-nalgebra-0.26: Move code changes to snippet., guix-commits, 2022/05/11