From fb9549164520ad993c2fbbaedc899844d57baabc Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 28 Mar 2024 13:27:04 +0100 Subject: gnu: python-pynacl: Use pyproject-build-system. * gnu/packages/python-crypto.scm (python-pynacl)[build-system]: Use pyproject-build-system. [arguments]: Remove custom check phase. [source]: Remove unnecessary substitution. Change-Id: Idf2409022abde9f3a59e71cd1fa69ce9f1df6b1f --- gnu/packages/python-crypto.scm | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 374724e8a4..3e1472a6c9 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -11,7 +11,7 @@ ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2016, 2017 Nikita ;;; Copyright © 2014, 2015 Mark H Weaver -;;; Copyright © 2015, 2016, 2017, 2019, 2022 Ricardo Wurmus +;;; Copyright © 2015, 2016, 2017, 2019, 2022, 2024 Ricardo Wurmus ;;; Copyright © 2016 Danny Milosavljevic ;;; Copyright © 2016, 2017, 2020 Arun Isaac ;;; Copyright © 2017 Carlo Zancanaro @@ -782,25 +782,19 @@ (define-public python-pynacl (modules '((guix build utils))) (snippet '(begin - ;; Remove spurious dependency on python-wheel, can be removed - ;; for 1.5. - (substitute* "setup.py" - (("\"wheel\"") "")) ;; Remove bundled libsodium. (delete-file-recursively "src/libsodium"))) (sha256 (base32 "1fi0jbxhh3svajzldlb6gj5sr5a48v11xlmx0wb831db167l9iwa")))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases + (list + #:phases + '(modify-phases %standard-phases (add-before 'build 'use-system-sodium (lambda _ - (setenv "SODIUM_INSTALL" "system"))) - (replace 'check - (lambda _ - (invoke "pytest" "-vv")))))) + (setenv "SODIUM_INSTALL" "system")))))) (native-inputs (list python-hypothesis python-pytest)) (propagated-inputs -- cgit v1.2.3