diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2024-03-28 13:27:04 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2024-03-28 13:27:04 +0100 |
| commit | fb9549164520ad993c2fbbaedc899844d57baabc (patch) | |
| tree | e666668f00229ea9ba958e0b44e9e1fe669708d2 | |
| parent | 1da36e4db925addecbd49a504752d9efb9b6eb7e (diff) | |
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
| -rw-r--r-- | gnu/packages/python-crypto.scm | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index 374724e8a40..3e1472a6c9f 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> | 11 | ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
| 12 | ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is> | 12 | ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is> |
| 13 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> | 13 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> |
| 14 | ;;; Copyright © 2015, 2016, 2017, 2019, 2022 Ricardo Wurmus <rekado@elephly.net> | 14 | ;;; Copyright © 2015, 2016, 2017, 2019, 2022, 2024 Ricardo Wurmus <rekado@elephly.net> |
| 15 | ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org> | 15 | ;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org> |
| 16 | ;;; Copyright © 2016, 2017, 2020 Arun Isaac <arunisaac@systemreboot.net> | 16 | ;;; Copyright © 2016, 2017, 2020 Arun Isaac <arunisaac@systemreboot.net> |
| 17 | ;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au> | 17 | ;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au> |
| @@ -782,25 +782,19 @@ PKCS#12, PKCS#5, X.509 and TSP.") | |||
| 782 | (modules '((guix build utils))) | 782 | (modules '((guix build utils))) |
| 783 | (snippet | 783 | (snippet |
| 784 | '(begin | 784 | '(begin |
| 785 | ;; Remove spurious dependency on python-wheel, can be removed | ||
| 786 | ;; for 1.5. | ||
| 787 | (substitute* "setup.py" | ||
| 788 | (("\"wheel\"") "")) | ||
| 789 | ;; Remove bundled libsodium. | 785 | ;; Remove bundled libsodium. |
| 790 | (delete-file-recursively "src/libsodium"))) | 786 | (delete-file-recursively "src/libsodium"))) |
| 791 | (sha256 | 787 | (sha256 |
| 792 | (base32 | 788 | (base32 |
| 793 | "1fi0jbxhh3svajzldlb6gj5sr5a48v11xlmx0wb831db167l9iwa")))) | 789 | "1fi0jbxhh3svajzldlb6gj5sr5a48v11xlmx0wb831db167l9iwa")))) |
| 794 | (build-system python-build-system) | 790 | (build-system pyproject-build-system) |
| 795 | (arguments | 791 | (arguments |
| 796 | `(#:phases | 792 | (list |
| 797 | (modify-phases %standard-phases | 793 | #:phases |
| 794 | '(modify-phases %standard-phases | ||
| 798 | (add-before 'build 'use-system-sodium | 795 | (add-before 'build 'use-system-sodium |
| 799 | (lambda _ | 796 | (lambda _ |
| 800 | (setenv "SODIUM_INSTALL" "system"))) | 797 | (setenv "SODIUM_INSTALL" "system")))))) |
| 801 | (replace 'check | ||
| 802 | (lambda _ | ||
| 803 | (invoke "pytest" "-vv")))))) | ||
| 804 | (native-inputs | 798 | (native-inputs |
| 805 | (list python-hypothesis python-pytest)) | 799 | (list python-hypothesis python-pytest)) |
| 806 | (propagated-inputs | 800 | (propagated-inputs |
