From patchwork Thu Feb 27 09:43:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cayetano Santos X-Patchwork-Id: 39350 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0D9FE27BBEA; Thu, 27 Feb 2025 09:46:02 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 030B427BBE2 for ; Thu, 27 Feb 2025 09:46:01 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tnaSP-0003yI-RC; Thu, 27 Feb 2025 04:45:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tnaRy-0003qf-9t for guix-patches@gnu.org; Thu, 27 Feb 2025 04:45:10 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tnaRx-0002FB-Nw for guix-patches@gnu.org; Thu, 27 Feb 2025 04:45:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=vy3LI8cqm1YCPs8Hus4SoFCOlb+u8tP21mr+ALzxBXI=; b=LnX/bMW5TqmNODnzzgQE01fYyWDghuwHMPQBygzk/6PF2qe7Qj7Bq85YVfhRys6Ym8oEFFqFPLGtBpf8GzY0QO6fr+Gsgr+kzB2FTiMdfQXAAOdTr3spy2Ms+xZJV4x5Yh5t+f/Y1Q/EIzPog/gpIaznCvuy1Pm0Q7jOF9bXFSlVrGWqij43nuKdQYmASlQPLH1qd019ujIhhB9yHMoKDZ4fy8JV/gzKMg7HXD0AFyQCEUlnlqWlNjXInA6mOGN3ek3tpl8Qc50RMx+4og2+Xd6MiyJmJuKwTQ69Fr06tDLkVGd7t1qOHO4HwyYEo5nJuNICv7Dg5kUvUo/7vbNkWg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tnaRx-0003ch-JG for guix-patches@gnu.org; Thu, 27 Feb 2025 04:45:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68153] [PATCH v1] gnu: Add python-cocotb. References: <3fee261b22e793873c0624d5a4f79a1c7b85118f.1703961850.git.csantosb@inventati.org> In-Reply-To: <3fee261b22e793873c0624d5a4f79a1c7b85118f.1703961850.git.csantosb@inventati.org> Resent-From: Cayetano Santos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Feb 2025 09:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68153 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68153@debbugs.gnu.org Cc: Cayetano Santos Received: via spool by 68153-submit@debbugs.gnu.org id=B68153.174064946313850 (code B ref 68153); Thu, 27 Feb 2025 09:45:01 +0000 Received: (at 68153) by debbugs.gnu.org; 27 Feb 2025 09:44:23 +0000 Received: from localhost ([127.0.0.1]:58196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tnaRL-0003bJ-3h for submit@debbugs.gnu.org; Thu, 27 Feb 2025 04:44:23 -0500 Received: from confino.investici.org ([2a11:7980:1::2:0]:39219) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tnaRH-0003b4-53 for 68153@debbugs.gnu.org; Thu, 27 Feb 2025 04:44:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1740649456; bh=vy3LI8cqm1YCPs8Hus4SoFCOlb+u8tP21mr+ALzxBXI=; h=From:To:Cc:Subject:Date:From; b=uqTAEvqM4y8BncKxQjzJdu367UJSYzb1Su8cRYBAur4vYfAuiKYJIUg9/Fi6XGRL3 GiiltwLXEATnTcvYmJfVy3l8Gusr8Fk634jV+M34B+E0jsIE9bc7XisCWFG6g3SRqT L/A/gHHtPbC19dPHq+bdvLltal8qgiHX41DZKpCE= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4Z3RJ00NTWz10yy; Thu, 27 Feb 2025 09:44:16 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4Z3RHz6JBFz10vQ; Thu, 27 Feb 2025 09:44:15 +0000 (UTC) Date: Thu, 27 Feb 2025 10:43:28 +0100 Message-ID: <36ac7f35c88f5faada042376019c603b707db0b1.1740649408.git.csantosb@inventati.org> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Cayetano Santos X-ACL-Warn: , Cayetano Santos via Guix-patches X-Patchwork-Original-From: Cayetano Santos via Guix-patches via From: Cayetano Santos Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/electronics.scm (python-cocotb): New variable. Change-Id: Ibb4190a016ac9a5045356b5f1a1eb7a8c820d9a5 --- gnu/packages/electronics.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) base-commit: 4270c484ca174ad97d1add91fa5fc69041a6af9d -- 2.48.1 diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index df0238c348..d013012dae 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2021 Leo Famulari ;;; Copyright © 2022, 2023 Maxim Cournoyer ;;; Copyright © 2024 Juliana Sims +;;; Copyright © 2025, Cayetano Santos ;;; ;;; This file is part of GNU Guix. ;;; @@ -31,6 +32,7 @@ (define-module (gnu packages electronics) #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) + #:use-module (guix build-system pyproject) #:use-module (gnu packages) #:use-module (gnu packages algebra) #:use-module (gnu packages autotools) @@ -42,6 +44,7 @@ (define-module (gnu packages electronics) #:use-module (gnu packages documentation) #:use-module (gnu packages embedded) #:use-module (gnu packages fontutils) + #:use-module (gnu packages fpga) #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages graphviz) @@ -522,3 +525,34 @@ (define-public minipro Additionally your user must be member of the @code{plugdev} group.") (home-page "https://gitlab.com/DavidGriffith/minipro") (license license:gpl3+)))) + +(define-public python-cocotb + (package + (name "python-cocotb") + (version "1.9.2") + (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 "19mybnhqa2jz134jj8686310fniav5nldiq0y7kbgml81ppai87c")))) + (build-system pyproject-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (invoke "make" "-C" "tests"))))))) + (native-inputs (list python-setuptools python-wheel + ;; tests + python-pytest)) + (propagated-inputs (list python-find-libpython)) + (inputs (list iverilog)) ;tests + (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)))