diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2025-02-28 16:21:29 +0100 |
|---|---|---|
| committer | Romain GARBAGE <romain.garbage@inria.fr> | 2025-03-06 10:32:13 +0100 |
| commit | d59daa2f5c4dacdf8f255c44b77ec6bc5a8247b1 (patch) | |
| tree | 59db38a655b47d1ef66f6e4249a7e29ed7930a80 | |
| parent | a17af1df06f9d2c4871ba939dce67991ee559107 (diff) | |
gnu: Add python-cocotb.
* guix-science/packages/electronics.scm (python-cocotb): New variable.
Signed-off-by: Romain Garbage <romain.garbage>
| -rw-r--r-- | guix-science/packages/electronics.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/guix-science/packages/electronics.scm b/guix-science/packages/electronics.scm index 6a4b3b3..3e5c6cf 100644 --- a/guix-science/packages/electronics.scm +++ b/guix-science/packages/electronics.scm | |||
| @@ -216,6 +216,35 @@ used as an experimental synthesizer backend.") | |||
| 216 | "This plugin provides a shared library module for Yosys to implement logical synthesis of VHDL designs.") | 216 | "This plugin provides a shared library module for Yosys to implement logical synthesis of VHDL designs.") |
| 217 | (license license:gpl3+)))) | 217 | (license license:gpl3+)))) |
| 218 | 218 | ||
| 219 | (define-public python-cocotb | ||
| 220 | (package | ||
| 221 | (name "python-cocotb") | ||
| 222 | (version "1.9.2") | ||
| 223 | (source | ||
| 224 | (origin | ||
| 225 | (method git-fetch) | ||
| 226 | (uri (git-reference | ||
| 227 | (url "https://github.com/cocotb/cocotb") | ||
| 228 | (commit (string-append "v" version)))) | ||
| 229 | (file-name (git-file-name name version)) | ||
| 230 | (sha256 | ||
| 231 | (base32 "19mybnhqa2jz134jj8686310fniav5nldiq0y7kbgml81ppai87c")))) | ||
| 232 | (build-system pyproject-build-system) | ||
| 233 | (arguments | ||
| 234 | `(#:phases (modify-phases %standard-phases | ||
| 235 | (replace 'check | ||
| 236 | (lambda* (#:key tests? inputs outputs #:allow-other-keys) | ||
| 237 | (when tests? | ||
| 238 | (invoke "make" "-C" "tests"))))))) | ||
| 239 | (native-inputs (list python-setuptools python-wheel python-pytest)) | ||
| 240 | (propagated-inputs (list python-find-libpython)) | ||
| 241 | (inputs (list iverilog ghdl-clang)) ; tests | ||
| 242 | (home-page "https://github.com/cocotb/cocotb") | ||
| 243 | (synopsis "Library for writing HDL testbenches in Python") | ||
| 244 | (description "Coroutine based cosimulation testbench environment for | ||
| 245 | verifying VHDL and Verilog RTL using Python.") | ||
| 246 | (license license:bsd-3))) | ||
| 247 | |||
| 219 | (define-public python-pyvhdlmodel | 248 | (define-public python-pyvhdlmodel |
| 220 | (package | 249 | (package |
| 221 | (name "python-pyvhdlmodel") | 250 | (name "python-pyvhdlmodel") |
