me
/
guix
Archived
1
0
Fork 0

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
Maxime Devos 2021-05-24 22:17:09 +02:00 committed by Ludovic Courtès
parent 45a96b3f03
commit 0ab7796f4d
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 7 additions and 7 deletions

View File

@ -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
(let ((runtest (lambda* (#:key inputs outputs #:allow-other-keys)
(string-append (let ((runtest
(assoc-ref %build-inputs "trytond") (string-append
"/lib/python" (assoc-ref inputs "trytond")
,(version-major+minor (package-version python)) "/lib/python"
"/site-packages/trytond/tests/run-tests.py"))) ,(version-major+minor (package-version python))
(lambda* (#:key inputs outputs #:allow-other-keys) "/site-packages/trytond/tests/run-tests.py")))
(add-installed-pythonpath inputs outputs) (add-installed-pythonpath inputs outputs)
(invoke "python" runtest "-m" ,module ,@extra-arguments)))))) (invoke "python" runtest "-m" ,module ,@extra-arguments))))))