mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-vunit: Fix unbundle dependencies.
* gnu/packages/electronics.scm (python-vunit)[arguments]: Remove dosymlink; add unbundle and run-examples #:phases. Change-Id: I088bffa95775a62045c5c6fecb1cf4a47ccda2f8 Signed-off-by: Gabriel Wicki <gabriel@erlikon.ch>
This commit is contained in:
parent
b16cacec26
commit
90fcaa261f
1 changed files with 20 additions and 9 deletions
|
@ -1737,17 +1737,28 @@ to enforce it.")
|
||||||
(string-append
|
(string-append
|
||||||
": \"llvm\",\n\tr\"static elaboration, LLVM JIT code "
|
": \"llvm\",\n\tr\"static elaboration, LLVM JIT code "
|
||||||
"generator\": \"llvm-jit\",")))))
|
"generator\": \"llvm-jit\",")))))
|
||||||
(add-after 'ensure-no-mtimes-pre-1980 'dosymlink
|
(add-after 'install 'unbundle
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(with-directory-excursion "vunit/vhdl/JSON-for-VHDL"
|
(let ((site-packages
|
||||||
|
(string-append (site-packages inputs outputs)
|
||||||
|
"/vunit/vhdl/")))
|
||||||
|
(mkdir-p (string-append site-packages "JSON-for-VHDL"))
|
||||||
(symlink
|
(symlink
|
||||||
(search-input-directory inputs "/share/json-for-vhdl")
|
(search-input-directory inputs "share/json-for-vhdl")
|
||||||
"src"))
|
(string-append site-packages "JSON-for-VHDL/src"))
|
||||||
(with-directory-excursion "vunit/vhdl"
|
|
||||||
(delete-file-recursively "osvvm")
|
|
||||||
(symlink
|
(symlink
|
||||||
(search-input-directory inputs "/share/osvvm/osvvm")
|
(search-input-directory inputs "share/osvvm/osvvm")
|
||||||
"osvvm")))))
|
(string-append site-packages "osvvm")))))
|
||||||
|
(add-after 'check 'run-examples
|
||||||
|
;; Run examples as an extra check.
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(with-directory-excursion "examples/vhdl"
|
||||||
|
(for-each
|
||||||
|
(lambda (dir)
|
||||||
|
(invoke "python3" (string-append dir "/run.py")))
|
||||||
|
(list
|
||||||
|
"array" "check" "composite_generics" "json4vhdl" "logging"
|
||||||
|
"logging" "uart" "vhdl_configuration"))))))
|
||||||
#:test-flags
|
#:test-flags
|
||||||
;; Skip lint tests which require python-pycodestyle, python-pylint and
|
;; Skip lint tests which require python-pycodestyle, python-pylint and
|
||||||
;; python-mypy to reduce closoure size; some lint test fails, see
|
;; python-mypy to reduce closoure size; some lint test fails, see
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue