summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-04-28 23:54:59 +0200
committerLudovic Courtès <ludo@gnu.org>2022-04-28 23:54:59 +0200
commit09fcd191e14824dc9569611d6b2d4e423ef5b106 (patch)
tree7b08a2e52bc840ec0127ddc0143e655fa3d18640
parentf785299af1bf0e7aa45e7d9ee096b12be9aebae6 (diff)
downloadguix-09fcd191e14824dc9569611d6b2d4e423ef5b106.tar.gz
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.
-rw-r--r--gnu/packages/crates-io.scm9
1 files changed, 8 insertions, 1 deletions
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