gnu: python-vsg: Update to 3.33.0.

* gnu/packages/electronics.scm (python-vsg): Update to 3.33.0.
[arguments]<:#test-flags>: Disable test_utf_8.
[native-nputs]: Add pytest-cov and pytest-html.

Change-Id: I9ed0c4df95140e54301995c268dc6f9206d44c53
Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
This commit is contained in:
Cayetano Santos 2025-07-16 11:41:38 +02:00 committed by Maxim Cournoyer
parent 5dea1814d4
commit cb012b55d3
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -873,7 +873,7 @@ design.")
(define-public python-vsg (define-public python-vsg
(package (package
(name "python-vsg") (name "python-vsg")
(version "3.32.0") (version "3.33.0")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -882,14 +882,20 @@ design.")
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0ql96n291zm4j324q8fmlvy8xvrksb8v6fip0g0sw374z86hda53")))) (base32 "1pnhha7dfika5jv1wrdwjkwrqaz22n0fb845wid5sy62gn549hmb"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:test-flags #:test-flags
;; Tests are expensive and may introduce race condition on systems with ;; Tests are expensive and may introduce race condition on systems with
;; high (more than 16) threads count; limit parallel jobs to 8x. ;; high (more than 16) threads count; limit parallel jobs to 8x.
#~(list "--numprocesses" (number->string (min 8 (parallel-job-count)))) #~(list
"--numprocesses" (number->string (min 8 (parallel-job-count)))
;; TODO: Remove in 3.34.0.
;; "file" command on "utf-8_encoded.vhd" file fails to detect
;; utf-8 formatting. See:
;; https://github.com/jeremiah-c-leary/vhdl-style-guide/issues/1471
"-vv" "-k" "not test_utf_8")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'pathch-pytest-options (add-after 'unpack 'pathch-pytest-options
@ -900,6 +906,8 @@ design.")
((".*-n.*auto.*") ""))))))) ((".*-n.*auto.*") "")))))))
(native-inputs (native-inputs
(list python-pytest (list python-pytest
python-pytest-cov
python-pytest-html
python-pytest-xdist python-pytest-xdist
python-setuptools python-setuptools
python-wheel)) python-wheel))