gnu: python-cocotb: Update to 2.0.0b1.

* gnu/packages/electronics.scm (python-cocotb): Update to 2.0.0b1.
  [arguments] <:#test-flags>: Update.
  <:#phases>: Remove 'check-vhdl.

Change-Id: I3c4faf4eb1c332246b9417ecd30a5c681ae61789
This commit is contained in:
Cayetano Santos 2025-07-17 16:34:38 +02:00 committed by Sharlatan Hellseher
parent 2dc9927258
commit f2e4c9d4b0
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -566,34 +566,21 @@ for sigrok.")
(define-public python-cocotb
(package
(name "python-cocotb")
(version "1.9.2")
(version "2.0.0b1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/cocotb/cocotb")
(commit (string-append "v" version))))
(url "https://github.com/cocotb/cocotb")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "19mybnhqa2jz134jj8686310fniav5nldiq0y7kbgml81ppai87c"))))
(base32 "14aas4vw9cb9krnvw21vfmwqivvc2cwzi9rvmvap6xcw9f2dsyy9"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
;; Tests requiring a verilog simulator.
#~(list "-k" (string-join
(list "not parallel_cocotb"
"cocotb"
"vhdl_libraries_multiple")
" and not "))
#:phases
#~(modify-phases %standard-phases
;; Tests requiring a vhdl simulator.
(add-after 'check 'check-vhdl
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "SIM" "nvc")
(invoke "pytest" "-vv" "-k" "vhdl_libraries_multiple")))))))
#~(list "-k" "not test_toplevel_library")));requires questasim simulator
(native-inputs
(list iverilog
nvc