[PATCH] gnu: rust-pyo3-0.15: Fix inputs.

DoneSubmitted by Brian Kubisiak.
Details
2 participants
  • Brian Kubisiak
  • Ludovic Courtès
Owner
unassigned
Severity
normal
B
B
Brian Kubisiak wrote on 6 Apr 00:30 +0200
(address . guix-patches@gnu.org)
20220405223046.nqy4isnaj5527cmq@peregrine
* gnu/packages/crates-io.scm(rust-pyo3-0.15)[arguments]<#:phases>: Substitute
rust-criterion version 0.3.4 to 0.3.5.
---
gnu/packages/crates-io.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

Toggle diff (22 lines)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bebc1fce8d..a11c58f9e0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -45746,7 +45746,14 @@ (define-public rust-pyo3-0.15
         ("rust-serde-json" ,rust-serde-json-1)
         ("rust-trybuild" ,rust-trybuild-1))
        ;; FIXME: fails to initialize Python interpreter.
-       #:tests? #f))
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-cargo-toml
+           (lambda _
+             (substitute* "Cargo.toml"
+               (("0.3.4") ,(package-version rust-criterion-0.3)))
+             #t)))))
     (inputs (list python))
     (home-page "https://github.com/pyo3/pyo3")
     (synopsis "Rust bindings for the Python interpreter")
-- 
2.34.0
L
L
Ludovic Courtès wrote on 2 May 22:18 +0200
(name . Brian Kubisiak)(address . brian@kubisiak.com)(address . 54741-done@debbugs.gnu.org)
877d73sn7c.fsf@gnu.org
Hi,

Brian Kubisiak <brian@kubisiak.com> skribis:

Toggle quote (3 lines)
> * gnu/packages/crates-io.scm(rust-pyo3-0.15)[arguments]<#:phases>: Substitute
> rust-criterion version 0.3.4 to 0.3.5.

Oops I independently pushed something to the same effect in
09fcd191e14824dc9569611d6b2d4e423ef5b106.

Thanks,
Ludo’.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send email to 54741@debbugs.gnu.org