mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
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
This commit is contained in:
parent
1da36e4db9
commit
fb95491645
1 changed files with 6 additions and 12 deletions
|
@ -11,7 +11,7 @@
|
||||||
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
|
;;; Copyright © 2016, 2017 Nikita <nikita@n0.is>
|
||||||
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
|
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
|
||||||
;;; Copyright © 2015, 2016, 2017, 2019, 2022 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2015, 2016, 2017, 2019, 2022, 2024 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
|
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
|
||||||
;;; Copyright © 2016, 2017, 2020 Arun Isaac <arunisaac@systemreboot.net>
|
;;; Copyright © 2016, 2017, 2020 Arun Isaac <arunisaac@systemreboot.net>
|
||||||
;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
|
;;; Copyright © 2017 Carlo Zancanaro <carlo@zancanaro.id.au>
|
||||||
|
@ -782,25 +782,19 @@ (define-public python-pynacl
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
;; Remove spurious dependency on python-wheel, can be removed
|
|
||||||
;; for 1.5.
|
|
||||||
(substitute* "setup.py"
|
|
||||||
(("\"wheel\"") ""))
|
|
||||||
;; Remove bundled libsodium.
|
;; Remove bundled libsodium.
|
||||||
(delete-file-recursively "src/libsodium")))
|
(delete-file-recursively "src/libsodium")))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1fi0jbxhh3svajzldlb6gj5sr5a48v11xlmx0wb831db167l9iwa"))))
|
"1fi0jbxhh3svajzldlb6gj5sr5a48v11xlmx0wb831db167l9iwa"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
|
'(modify-phases %standard-phases
|
||||||
(add-before 'build 'use-system-sodium
|
(add-before 'build 'use-system-sodium
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "SODIUM_INSTALL" "system")))
|
(setenv "SODIUM_INSTALL" "system"))))))
|
||||||
(replace 'check
|
|
||||||
(lambda _
|
|
||||||
(invoke "pytest" "-vv"))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-hypothesis python-pytest))
|
(list python-hypothesis python-pytest))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
|
Loading…
Reference in a new issue