unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#68153] [PATCH] gnu: Add python-cocotb.
@ 2023-12-30 18:44 Cayetano Santos via Guix-patches via
  2023-12-31 11:14 ` [bug#68153] [PATCH] gnu: Add python-find-libpython Troy Figiel
  2023-12-31 11:27 ` [bug#68153] python-find-libpython Troy Figiel
  0 siblings, 2 replies; 4+ messages in thread
From: Cayetano Santos via Guix-patches via @ 2023-12-30 18:44 UTC (permalink / raw)
  To: 68153; +Cc: Cayetano Santos

* gnu/packages/fpga.scm (python-cocotb): New variable.

Signed-off-by: Cayetano Santos <csantosb@inventati.org>
---
 gnu/packages/fpga.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm
index 13ac1a0b57..74eff01a7a 100644
--- a/gnu/packages/fpga.scm
+++ b/gnu/packages/fpga.scm
@@ -422,6 +422,33 @@ (define-public python-myhdl
 a hardware description and verification language.")
     (license license:lgpl2.1+)))
 
+(define-public python-cocotb
+  (package
+    (name "python-cocotb")
+    (version "1.8.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/cocotb/cocotb")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "07h8c3cjn4hhywvakcyk3chia102iszn6kjm53vl5f16rwy9xd07"))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-find_libpython))
+    (arguments
+     `(#:tests? #f			; no test suite
+       ))
+    (home-page "https://github.com/cocotb/cocotb")
+    (synopsis
+     "Library for writing HDL testbenches in Python")
+    (description
+     "Coroutine based cosimulation testbench environment for
+verifying VHDL and Verilog RTL using Python.")
+    (license license:bsd-3)))
+
 (define-public nvc
   (package
     (name "nvc")

base-commit: 7722da6fa5422c4fec69d6c8b9536c7d6fc3d326
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#68153] [PATCH] gnu: Add python-find-libpython.
  2023-12-30 18:44 [bug#68153] [PATCH] gnu: Add python-cocotb Cayetano Santos via Guix-patches via
@ 2023-12-31 11:14 ` Troy Figiel
  2023-12-31 11:27 ` [bug#68153] python-find-libpython Troy Figiel
  1 sibling, 0 replies; 4+ messages in thread
From: Troy Figiel @ 2023-12-31 11:14 UTC (permalink / raw)
  To: 68153

* gnu/packages/python-xyz.scm (python-find-libpython): New variable.
---
 gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2afce6c667..c4bbe14a7c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9159,6 +9159,30 @@ (define-public python-executor
 particularly the AST node being executed.")
     (license license:expat))) ; MIT license
 
+(define-public python-find-libpython
+  (package
+    (name "python-find-libpython")
+    (version "0.3.1")
+    (source
+     (origin
+       ;; Only available as a binary release on PyPI.
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ktbarrett/find_libpython")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1d7y9srf5j8g34azf0j1jnnrn5al55cnzb4kkx2l1q8hys0l040c"))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-pytest))
+    (home-page "https://github.com/ktbarrett/find_libpython")
+    (synopsis "Find the path to the @code{libpython} dynamic library")
+    (description "@code{find_libpython} helps find the path to the
+@code{libpython} dynamic library for the current Python environment.  It is
+both a script and a Python package.")
+    (license license:expat))) ; MIT license
+
 (define-public python-roifile
   (package
     (name "python-roifile")

base-commit: 2a242e86379ebddbdddf2927f26e5e27a98fc605
-- 
2.40.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#68153] python-find-libpython
  2023-12-30 18:44 [bug#68153] [PATCH] gnu: Add python-cocotb Cayetano Santos via Guix-patches via
  2023-12-31 11:14 ` [bug#68153] [PATCH] gnu: Add python-find-libpython Troy Figiel
@ 2023-12-31 11:27 ` Troy Figiel
  2024-11-19 10:51   ` Cayetano Santos via Guix-patches via
  1 sibling, 1 reply; 4+ messages in thread
From: Troy Figiel @ 2023-12-31 11:27 UTC (permalink / raw)
  To: 68153

[-- Attachment #1: Type: text/plain, Size: 447 bytes --]

I would love to see cocotb included in Guix. Your patch does not build
for me though, because find-libpython is missing. I took the liberty to
add it. After replacing `python-find_libpython' by
`python-find-libpython' and including my patch, your patch does
successfully build for me.

That being said, it seems cocotb actually has a very extensive set of
tests. If possible, it would be nice if these can be included as well.

Best wishes,

Troy

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#68153] python-find-libpython
  2023-12-31 11:27 ` [bug#68153] python-find-libpython Troy Figiel
@ 2024-11-19 10:51   ` Cayetano Santos via Guix-patches via
  0 siblings, 0 replies; 4+ messages in thread
From: Cayetano Santos via Guix-patches via @ 2024-11-19 10:51 UTC (permalink / raw)
  To: troy; +Cc: 68153


Thanks.

There is already a patch for python-find-libpython (0.4.0)
waiting since a long time ago (#70067) anyway.

I rather decided to opt for my own channel, where I include these, as a
better option to waiting for patches to be considered upstream.

gitlab.com/csantosb/guix/channel-electronics

--
Cayetano Santos




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-19 10:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-30 18:44 [bug#68153] [PATCH] gnu: Add python-cocotb Cayetano Santos via Guix-patches via
2023-12-31 11:14 ` [bug#68153] [PATCH] gnu: Add python-find-libpython Troy Figiel
2023-12-31 11:27 ` [bug#68153] python-find-libpython Troy Figiel
2024-11-19 10:51   ` Cayetano Santos via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).