mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-pynacl: Do not set PYTHONPATH.
* gnu/packages/python-crypto.scm (python-pynacl): Delete trailing #t. [arguments]: Remove the '#:modules' argument. [phases]: Use %standard-phases. Do not set PYTHONPATH.
This commit is contained in:
parent
824f32a1a2
commit
cbb9fab20f
1 changed files with 6 additions and 16 deletions
|
@ -24,6 +24,7 @@
|
||||||
;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
|
;;; Copyright © 2020 Alexandros Theodotou <alex@zrythm.org>
|
||||||
;;; Copyright © 2020 Justus Winter <justus@sequoia-pgp.org>
|
;;; Copyright © 2020 Justus Winter <justus@sequoia-pgp.org>
|
||||||
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
|
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
|
||||||
|
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -789,31 +790,20 @@ PKCS#8, PKCS#12, PKCS#5, X.509 and TSP.")
|
||||||
(substitute* "setup.py"
|
(substitute* "setup.py"
|
||||||
(("\"wheel\"") ""))
|
(("\"wheel\"") ""))
|
||||||
;; Remove bundled libsodium.
|
;; Remove bundled libsodium.
|
||||||
(delete-file-recursively "src/libsodium")
|
(delete-file-recursively "src/libsodium")))
|
||||||
#t))
|
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal"))))
|
"01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:modules (,@%python-build-system-modules
|
`(#:phases
|
||||||
(guix build utils)
|
(modify-phases %standard-phases
|
||||||
(ice-9 ftw)
|
|
||||||
(srfi srfi-26))
|
|
||||||
#:phases
|
|
||||||
(modify-phases (@ (guix build python-build-system) %standard-phases)
|
|
||||||
(add-before 'build 'use-system-sodium
|
(add-before 'build 'use-system-sodium
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "SODIUM_INSTALL" "system")
|
(setenv "SODIUM_INSTALL" "system")))
|
||||||
#t))
|
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(let ((build-directory
|
(invoke "pytest" "-vv"))))))
|
||||||
(car (scandir "build" (cut string-prefix? "lib" <>)))))
|
|
||||||
(setenv "PYTHONPATH"
|
|
||||||
(string-append "./build/" build-directory ":"
|
|
||||||
(getenv "PYTHONPATH")))
|
|
||||||
(invoke "pytest" "-vv")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-hypothesis" ,python-hypothesis)
|
`(("python-hypothesis" ,python-hypothesis)
|
||||||
("python-pytest" ,python-pytest)))
|
("python-pytest" ,python-pytest)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue