[bug#78077,electronics-team] gnu: python-vunit: Update to 5.0.0-dev.5.
Commit Message
* gnu/packages/fpga.scm (python-vunit): Update to 5.0.0-dev.5.
Change-Id: Idde0283b73906209799fcc2be9bbb72df8d2aa20
---
Update to release 5.0.0-dev.5, updating 2 years old 4.7.0.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:tests> Activate.
[propgated-inputs]: Remove python.
[native-inputs]: Add all necessary for building and testing.
gnu/packages/fpga.scm | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
base-commit: edeafb19c4a83eb81fe7e47a6a94f238db9cccf1
--
2.49.0
Comments
Hi,
Thank you for the patch.
I've remove Lint dependencies and kept only unit tests as acceptance
tests failed during local check.
See the diff:
--8<---------------cut here---------------start------------->8---
(base32 "1sfnl1l6bgaqa8c2sk8k8f232bnq2drjg6rg7jvscmyz18yfih0b"))))
(build-system pyproject-build-system)
(arguments
- (list #:phases #~(modify-phases %standard-phases
- ;; See https://github.com/VUnit/vunit/issues/1111
- (add-before 'check 'remove-failure
- (lambda _
- (delete-file "tests/lint/test_license.py"))))))
- (native-inputs (list
- ;; tests
- nvc
- python-coverage
- python-mypy
- python-pycodestyle
- python-pygments
- python-pylint
- python-pytest
- ;;
- python-setuptools
- python-wheel))
- (propagated-inputs (list python-colorama))
+ (list
+ #:test-flags
+ ;; Skip lint tests which require python-pycodestyle, python-pylint and
+ ;; python-mypy to reduce closoure size; some lint test fails, see
+ ;; <https://github.com/VUnit/vunit/issues/1111>.
+ ;;
+ ;; XXX: Acceptance tests take 10+ minutes to complete, hang on
+ ;; "test_external_run_scripts.py" and fail eventually, consider to
+ ;; improve them; ignore for now.
+ #~(list "tests/unit")))
+ (native-inputs
+ (list nvc
+ python-pytest
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
+ (propagated-inputs
+ (list python-colorama))
(home-page "https://vunit.github.io")
(synopsis "Unit testing framework for VHDL/SystemVerilog")
(description
--8<---------------cut here---------------end--------------->8---
Commit message was amended as well accordingly.
Passed lint and build.
Pushed to master as e6d951c7cfaa6e0f196b8d18b41e33ecfce109dc.
--
Oleg
@@ -72,6 +72,7 @@ (define-module (gnu packages fpga)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
+ #:use-module (gnu packages python-check)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages qt)
#:use-module (gnu packages readline)
@@ -523,7 +524,7 @@ (define-public python-myhdl
(define-public python-vunit
(package
(name "python-vunit")
- (version "4.7.0")
+ (version "5.0.0-dev.5") ;v4.7.0 dates back from 2 years ago.
(source
(origin
(method git-fetch)
@@ -533,17 +534,23 @@ (define-public python-vunit
(recursive? #t)))
(file-name (git-file-name name version))
(sha256
- (base32 "0s7j5bykbv34wgnxy5cl4zp6g0caidvzs8pd9yxjq341543xkjwm"))))
- (build-system python-build-system)
- (arguments
- '(#:tests? #f)) ;XXX: requires setuptools_scm >= 2.0.0, <3
- (propagated-inputs (list python python-colorama))
+ (base32 "1sfnl1l6bgaqa8c2sk8k8f232bnq2drjg6rg7jvscmyz18yfih0b"))))
+ (build-system pyproject-build-system)
+ (native-inputs (list python-setuptools
+ python-wheel
+ ;; tests
+ nvc
+ python-mypy
+ python-coverage
+ python-pycodestyle
+ python-pylint
+ python-pytest))
+ (propagated-inputs (list python-colorama))
(home-page "https://vunit.github.io")
(synopsis "Unit testing framework for VHDL/SystemVerilog")
(description
"VUnit features the functionality needed to realize continuous and
automated testing of HDL code.")
-
;; According to 'LICENSE.rst', VUnit itself is under MPL but two
;; subdirectories are under ASL.
(license (list license:mpl2.0 license:asl2.0))))