[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: rust-pyo3: Allow compilation with Criterion 0.3.5.
From: |
guix-commits |
Subject: |
02/02: gnu: rust-pyo3: Allow compilation with Criterion 0.3.5. |
Date: |
Thu, 28 Apr 2022 19:05:53 -0400 (EDT) |
civodul pushed a commit to branch staging
in repository guix.
commit 391dc965299de6b2313e0f2c6c52ceef3294e55f
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Apr 28 23:54:59 2022 +0200
gnu: rust-pyo3: Allow compilation with Criterion 0.3.5.
Fixes a regression introduced in
2703daf6eb0098ad064a9b6ec64a9ae7b5b35343.
* gnu/packages/crates-io.scm (rust-pyo3-0.15)[modules, snippet]: New
fields.
---
gnu/packages/crates-io.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bebc1fce8d..c8ce72b129 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -45716,7 +45716,14 @@ ecosystem.")
(uri (crate-uri "pyo3" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "082p014xd8ipwnfsq1ln871wkslxmbrxd7kpqwa0mbq53jzivw3w"))))
+ (base32 "082p014xd8ipwnfsq1ln871wkslxmbrxd7kpqwa0mbq53jzivw3w"))
+ (modules '((guix build utils)))
+ (snippet
+ ;; XXX: Relax "dev-dependencies.criterion"; this must match the
+ ;; version of RUST-CRITERION-0.3.
+ '(substitute* "Cargo.toml"
+ (("\"=0\\.3\\.4\"")
+ "\"=0.3.5\"")))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs