build-system: python: Add allowed/disallowed keyword arguments.

* gnu/build-system/python.scm (python-build) Add ALLOWED-REFERENCES and
DISALLOWED-REFERENCES keywords.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I80bfe8e23b8475a8ca277cddd4275f1e757db8c3
This commit is contained in:
Maxime Devos 2021-03-29 12:52:56 +02:00 committed by Ludovic Courtès
parent e3178b088a
commit 725960c9ba
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -179,7 +179,9 @@ (define* (python-build name inputs
(guile #f)
(imported-modules %python-build-system-modules)
(modules '((guix build python-build-system)
(guix build utils))))
(guix build utils)))
allowed-references
disallowed-references)
"Build SOURCE using PYTHON, and with INPUTS. This assumes that SOURCE
provides a 'setup.py' file as its build system."
(define build
@ -204,14 +206,15 @@ (define build
search-paths))
#:inputs %build-inputs)))))
(mlet %store-monad ((guile (package->derivation (or guile (default-guile))
system #:graft? #f)))
(gexp->derivation name build
#:system system
#:graft? #f ;consistent with 'gnu-build'
#:target #f
#:guile-for-build guile)))
#:guile-for-build guile
#:allowed-references allowed-references
#:disallowed-references disallowed-references)))
(define python-build-system
(build-system