gnu: tryton: Use local 'inputs' instead of global '%build-inputs'.
The former is preferred above the latter. * gnu/packages/tryton.scm (tryton-phases): Look up "trytond" in the 'inputs' argument instead of in '%build-inputs'. Signed-off-by: Ludovic Courtès <ludo@gnu.org>master
parent
45a96b3f03
commit
0ab7796f4d
|
@ -150,13 +150,13 @@ and security.")
|
||||||
If present, pass EXTRA-ARGUMENTS to runtest as well."
|
If present, pass EXTRA-ARGUMENTS to runtest as well."
|
||||||
`(modify-phases %standard-phases
|
`(modify-phases %standard-phases
|
||||||
(replace 'check
|
(replace 'check
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let ((runtest
|
(let ((runtest
|
||||||
(string-append
|
(string-append
|
||||||
(assoc-ref %build-inputs "trytond")
|
(assoc-ref inputs "trytond")
|
||||||
"/lib/python"
|
"/lib/python"
|
||||||
,(version-major+minor (package-version python))
|
,(version-major+minor (package-version python))
|
||||||
"/site-packages/trytond/tests/run-tests.py")))
|
"/site-packages/trytond/tests/run-tests.py")))
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
||||||
(add-installed-pythonpath inputs outputs)
|
(add-installed-pythonpath inputs outputs)
|
||||||
(invoke "python" runtest "-m" ,module ,@extra-arguments))))))
|
(invoke "python" runtest "-m" ,module ,@extra-arguments))))))
|
||||||
|
|
||||||
|
|
Reference in New Issue