From 9ecefea718b76e50cec8326009fbb71c650e3d41 Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Mon, 21 Apr 2025 11:25:29 +0200 Subject: gnu: python-keyutils: Fix build with python 3.11. * gnu/packages/python-crypto.scm (python-keyutils)[native-inputs]: Add python-cython. [arguments]: Add 'regenerate-c-file' phase. Change-Id: I2e444ae105a4b7b114eab2842426983969d3f174 --- gnu/packages/python-crypto.scm | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python-crypto.scm') diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index fc57afb8627..93ae312d5d8 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -19,7 +19,7 @@ ;;; Copyright © 2018, 2021 Nicolas Goaziou ;;; Copyright © 2018 Vagrant Cascadian ;;; Copyright © 2018 Nam Nguyen -;;; Copyright © 2019 Guillaume Le Vaillant +;;; Copyright © 2019, 2025 Guillaume Le Vaillant ;;; Copyright © 2019 Clément Lassieur ;;; Copyright © 2020 Alexandros Theodotou ;;; Copyright © 2020 Justus Winter @@ -1358,11 +1358,16 @@ with state-tracking and configuration abstractions.") "0lipygpzhwzzsq2k5imb1jgkmj8y4khxdwhzadjs3bd56g6bmkx9")))) (build-system python-build-system) (native-inputs - (list python-pytest python-pytest-runner)) + (list python-cython python-pytest python-pytest-runner)) (inputs (list keyutils)) (arguments - '(#:tests? #f)) + (list #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'regenerate-c-file + (lambda _ + (invoke "cython" "keyutils/_keyutils.pyx")))))) (home-page "https://github.com/sassoftware/python-keyutils") (synopsis "Python bindings for keyutils") (description -- cgit v1.3