From debbugs-submit-bounces@debbugs.gnu.org Wed May 14 06:30:54 2025 Received: (at submit) by debbugs.gnu.org; 14 May 2025 10:30:54 +0000 Received: from localhost ([127.0.0.1]:40005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uF9Nz-0001R9-R5 for submit@debbugs.gnu.org; Wed, 14 May 2025 06:30:53 -0400 Received: from lists.gnu.org ([2001:470:142::17]:44860) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uF9Nw-0001PB-0G for submit@debbugs.gnu.org; Wed, 14 May 2025 06:30:49 -0400 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 1uF9Np-0006hp-Ci for guix-patches@gnu.org; Wed, 14 May 2025 06:30:41 -0400 Received: from latitanza.investici.org ([82.94.249.234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uF9Nn-0004Fp-4K for guix-patches@gnu.org; Wed, 14 May 2025 06:30:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1747218627; bh=1th6MR7wmt/+450UHtEzGbE2+lV1ehnMN9hs1wBzaic=; h=From:To:Cc:Subject:Date:From; b=cGul9AOEjDAJ1Qs4oApEAuB923TDhIMdQDjMTgNCY5qhjpZmKz7Uc/Yi0Lkjb0FjW Qm+TDGXt7r4Dq1RhbBYJr933hl3fY7ujItVVRqAxTQ9DjH7HMDEL+LJOxWoJPEfX6y fqkWkpKgyn9nOVNtVxUr3DOqC0FFIx2wRMEbTegc= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4Zy8kC0lYVzGp6Y; Wed, 14 May 2025 10:30:27 +0000 (UTC) Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4Zy8kB6d0bzGp6V; Wed, 14 May 2025 10:30:26 +0000 (UTC) From: Cayetano Santos To: guix-patches@gnu.org Subject: [PATCH electronics-team] gnu: Add python-apycula. Date: Wed, 14 May 2025 12:30:07 +0200 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Debbugs-Cc: Cayetano Santos , Ekaitz Zarraga , Gabriel Wicki , Maxim Cournoyer Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=82.94.249.234; envelope-from=csantosb@inventati.org; helo=latitanza.investici.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: Cayetano Santos X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) * gnu/packages/electronics.scm (python-apycula): New variable. Change-Id: I8e65416c1a555be189e9b8433d1ec7165aee16e9 --- gnu/packages/electronics.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index da37a9fb33..36e1909d36 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -563,6 +563,39 @@ (define-public pulseview for sigrok.") (license license:gpl3+))) +(define-public python-apycula + (package + (name "python-apycula") + (version "0.18") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/YosysHQ/apicula/") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0r1qx2q5dyjj3085g4ql41b21108m0s3wb7ylsy7xllvw527798l")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f ;requires network + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'sanity-check-fix + (lambda _ + (substitute* "setup.py" + (("'gowin_bba") + "# 'gowin_bbva"))))))) + (propagated-inputs (list python-crc)) + (native-inputs (list python-setuptools python-wheel)) + (home-page "https://github.com/YosysHQ/apicula/") + (synopsis "Gowin FPGA bitstream format") + (description + "The project Apycula provides tools to support development and +generating bitstreams with Gowin FPGAs.") + (license license:expat))) + (define-public python-edalize (package (name "python-edalize") base-commit: 5f5d84beccc180f1b51474c0e47eb6e0d0c9175f -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Wed May 14 06:39:46 2025 Received: (at 78422) by debbugs.gnu.org; 14 May 2025 10:39:46 +0000 Received: from localhost ([127.0.0.1]:40124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uF9Wb-0002aH-PF for submit@debbugs.gnu.org; Wed, 14 May 2025 06:39:46 -0400 Received: from cotopaxi.ee.ethz.ch ([129.132.148.196]:36175) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uF9WY-0002YX-4p for 78422@debbugs.gnu.org; Wed, 14 May 2025 06:39:43 -0400 Received: from silvi (212-51-128-25.fiber7.init7.net [212.51.128.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: gabriel) by cotopaxi.ee.ethz.ch (Postfix) with ESMTPSA id 9E9E41FF54; Wed, 14 May 2025 12:39:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=erlikon.ch; s=20250312; t=1747219175; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yYs70R0+tt2IzKOTWe2FYFOjpxxxYPHx7BDCTGZyJr0=; b=bAu0OPz5DMzJZvSTdcG4AWHtOaME/PqVIy32Ys+t+khuQh/614MzcEr2AKltgIp1ZPt/6u O5B2W22fAoSEMHV2Pu1vW6FsBJm4v7fSAyNxJZ2iqfbsthnmD4ynjvqpDG2mpfw0GPLXOr uXPMGqD86jW5lb5VK1CCflh8bOXMA3Safkyevn5lyb90Zzq/awjuWEiTLW0jx3F82IRf/8 PwTfijW7VkQASY5brlnGS5tCYK5SPnrUVeWgbnNXx175pp94TbKbNEbtXNeb+06D1iTBwr lE8SggvzE26elwZEdqa7zLc+RVASTAuNc3lKnQJy+QXGq7GL1ik/3o7Gju7dSStB25dRwg olZZFmW9/ON9kND5P8InNvhcD+W0i0Y1tmKL26yrtVbMHk9FOX070VNFD4um2nbbztcfaO 8kSn0NHGU0+ZAfXYGVle2buLxQu/UymEgg/oZUi/Al5z4zcWWilyyvUp7YvpgCIDOqR4xg n83syDYE3v8pJRKM3tOtDwrQVtPMqxrfj2dbBJWrb1VRsesGPk7aY2nZ3iqak2Dt0juqaQ HuYe08Dj8/ZJ4onvb+0CPg9c6/MhKTkrvPXLLwrgSkNATN3k+6sd+lXMbKzN0sS9w45v6v O+bayKPCx4t0lfx7lqIziHgEOdiHX01OtU1YAUV81DbvRBF8StPXQ= Date: Wed, 14 May 2025 12:39:31 +0200 From: Gabriel Wicki To: Cayetano Santos Subject: Re: [bug#78422] [PATCH electronics-team] gnu: Add python-apycula. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78422 Cc: 78422@debbugs.gnu.org, Maxim Cournoyer , Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Wed, May 14, 2025 at 12:30:07PM +0200, Cayetano Santos wrote: > + #:tests? #f ;requires network This is a pity - any chance we could disable just a single test that needs networking or do all tests need it? > + #:phases > + #~(modify-phases %standard-phases > + (add-after 'unpack 'sanity-check-fix > + (lambda _ > + (substitute* "setup.py" > + (("'gowin_bba") > + "# 'gowin_bbva"))))))) You (probably) could just substitute with an empty string "" (aka deleting) instead of commenting it out. But it doesn't really matter. Maybe a comment on why this fixes anything could be a nice pointer for future us on why it is/was necessary? Apart from these questions this LGTM. If it builds, works as expected and the linter is happy this could be merged IMO. Thanks for your time and effort! gabber From debbugs-submit-bounces@debbugs.gnu.org Wed May 14 08:24:39 2025 Received: (at 78422) by debbugs.gnu.org; 14 May 2025 12:24:39 +0000 Received: from localhost ([127.0.0.1]:41000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uFBA5-0003uz-Rm for submit@debbugs.gnu.org; Wed, 14 May 2025 08:24:39 -0400 Received: from latitanza.investici.org ([82.94.249.234]:65193) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uFBA1-0003tx-EG for 78422@debbugs.gnu.org; Wed, 14 May 2025 08:24:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1747225471; bh=ulFoyUc/YjvcdUVM078IU1Vuqt2FzxRBR8NQ9swhSis=; h=From:To:Cc:Subject:Date:From; b=rUJWl0DYLDHanj3/uaxRqLcPbRZSufPOXI+zzExgzR2kgbAWMwi4xcNCgY7CqmLqG dIEIr4zwO0edl2qdTnSFCxnq6sBDX7WhL7Q+kKq30SFBWUbdKOVtAymQNiCBs3OncF lRvVvEB4aAxgo4kJVDB9nlFJfyjRLaR39u9F/6Zg= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4ZyCFq38gxzGp8L; Wed, 14 May 2025 12:24:31 +0000 (UTC) Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4ZyCFq1SCTzGp7F; Wed, 14 May 2025 12:24:31 +0000 (UTC) From: Cayetano Santos To: 78422@debbugs.gnu.org Subject: [PATCH electronics-team v2] gnu: Add python-apycula. Date: Wed, 14 May 2025 14:24:12 +0200 Message-ID: <9f73e46791667e7bf10f749debcec6152cc0320e.1747225452.git.csantosb@inventati.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Debbugs-Cc: Cayetano Santos , Ekaitz Zarraga , Gabriel Wicki , Maxim Cournoyer Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78422 Cc: Cayetano Santos , Cayetano Santos via Guix-patches via X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) From: Cayetano Santos via Guix-patches via * gnu/packages/electronics.scm (python-apycula): New variable. Change-Id: I8e65416c1a555be189e9b8433d1ec7165aee16e9 Signed-off-by: Cayetano Santos --- gnu/packages/electronics.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index da37a9fb33..4dc9264fbf 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -29,6 +29,7 @@ (define-module (gnu packages electronics) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system pyproject) + #:use-module (guix build-system python) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) @@ -563,6 +564,36 @@ (define-public pulseview for sigrok.") (license license:gpl3+))) +(define-public python-apycula + (package + (name "python-apycula") + (version "0.18") + (source + (origin + (method url-fetch) + (uri (pypi-uri "Apycula" version)) + (sha256 + (base32 "167jif24568q5b9d9zdrp60c1qnjxmanhld6q3wx251i3sgrfilx")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f ;requires network + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'sanity-check-fix + (lambda _ + (substitute* "setup.py" + (("'gowin_bba") + "# 'gowin_bbva"))))))) + (propagated-inputs (list python-crc)) + (native-inputs (list python-setuptools python-wheel)) + (home-page "https://github.com/YosysHQ/apicula/") + (synopsis "Gowin FPGA bitstream format") + (description + "The project Apycula provides tools to support development and +generating bitstreams with Gowin FPGAs.") + (license license:expat))) + (define-public python-edalize (package (name "python-edalize") base-commit: 5f5d84beccc180f1b51474c0e47eb6e0d0c9175f -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Thu May 15 02:46:14 2025 Received: (at 78422) by debbugs.gnu.org; 15 May 2025 06:46:14 +0000 Received: from localhost ([127.0.0.1]:50331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uFSM9-0000KX-SZ for submit@debbugs.gnu.org; Thu, 15 May 2025 02:46:14 -0400 Received: from cotopaxi.ee.ethz.ch ([129.132.148.196]:39775) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uFSM7-0000K5-DZ; Thu, 15 May 2025 02:46:11 -0400 Received: from coney (mob-194-230-148-150.cgn.sunrise.net [194.230.148.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: gabriel) by cotopaxi.ee.ethz.ch (Postfix) with ESMTPSA id 0A7791FF2B; Thu, 15 May 2025 08:46:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=erlikon.ch; s=20250312; t=1747291565; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SyoehwmhxHW+57KX2gjBrTUvZUiG9jvULsGtWBwFtk0=; b=nGLEuNxGj7uVb8aSq8iSpFZ0VeJdEK0YpdolGt5lvDIlqGSLvU0og0zsSwtXlI3kMRiYl3 29CuTj4RjWn7C3+9l4cMXkU0WZYAVBSA6GWZz2z3/NGwi4CBx7rdVmz1dhtYjsYNYHH3Ss 5d4LvJWQ7HyTUQipSY++zMTAkZwdihgHnxYYPiOvkBVkDlre9/nepszxoCYjRcJRMAllF0 LwmmCeFaldBoJU5oyj/ol6wa97SWNtB2mjZBByghzz//EUQFc5O5q082hqXcVO9MOHVUSR 1/Xx4YysUcPEwvXv5KXtmEGyA++ZaATqcXsSgyhjIXJuwLt8xKiSmYH9YVcJSSO0zX1WT+ /QA5X41cMNqejG5hsqogIP/zJcxTGjIRjnUS+OhxqDBvWcOqeONlSgwgUTFAXjSLFWlwL2 ay4+d7FdwkY5CyIl4jLTobZ/AK1LGiZJeS5mcbPdCD3Sb/uZD6q+b3/PfLDkheSoIpVFnC tYHVShGLRl4gMBBkuGrjBktXLjebgdyQEbegBVEontVT/tVSMijZ8nba19QWiDQNuFB/Sr OqE9v6vG0Ha5QDl4vLVnIdV06ep1a/t9gyz3xlLud5fr68e3yKjtHifGZxZkZx4cdwle40 6ascHWrAvLh4z4rR4htzO0qB2Law/H4ia3OlDv/7T7PMyXHEGdcJw= Date: Thu, 15 May 2025 08:45:42 +0200 From: Gabriel Wicki To: Cayetano Santos Subject: Re: [bug#78425] [PATCH electronics-team v2] gnu: Add python-apycula. Message-ID: References: <9f73e46791667e7bf10f749debcec6152cc0320e.1747225452.git.csantosb@inventati.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9f73e46791667e7bf10f749debcec6152cc0320e.1747225452.git.csantosb@inventati.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78422 Cc: 78425@debbugs.gnu.org, 78422@debbugs.gnu.org, Maxim Cournoyer , Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi! It seems like you did neither answer nor address any of my questions from the previous review. And I have a hard time finding any differences between the original patch and this v2 (at least by naked eye). Is this by mistake? Would you mind answering my questions, so we can find ways for this patch to land optimally? Thanks - again - for your time and effort! gabber From debbugs-submit-bounces@debbugs.gnu.org Fri May 16 10:42:22 2025 Received: (at control) by debbugs.gnu.org; 16 May 2025 14:42:22 +0000 Received: from localhost ([127.0.0.1]:39588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uFwGT-0000H4-MQ for submit@debbugs.gnu.org; Fri, 16 May 2025 10:42:22 -0400 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]:56425) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uFwGQ-0000Fb-4g for control@debbugs.gnu.org; Fri, 16 May 2025 10:42:18 -0400 Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-30e8daea8c6so410349a91.0 for ; Fri, 16 May 2025 07:42:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747406531; x=1748011331; darn=debbugs.gnu.org; h=subject:from:to:message-id:date:from:to:cc:subject:date:message-id :reply-to; bh=lwh9CjiYwbQ6nlIjQPnEriMMwDU4zVi5CQQeJ8VSXDw=; b=fITvtqZnhf/M2jcF3OOp4t4K9tYgTgoeSsQRc8I+zBVkiHKBTh1XCLpe+WDazbY63E sJCcHdlvF3R0/YkG8Wp4bIqGDKw/RNTnwl2aYpD41KuxRxS1kkXCAfeRFpybK2fBLx30 7gWNge9A+PK8sUPWGmmxBNwEwxSA4lnbCzEiGfD9Bew3s/rrYFrwHIW0qImockkabJoB Ip7N6JgpRdOG6/fiDFZ8XYK8K1gg2scpRtCkqumTtmmnN5g4M4YHluGRyEygTv3ukaN/ 6F9eHoSmXkqFAcUQP2W0m4uX23we+CMK11W4FfocHnWOsyA3CKOxbDZyOaLAxHq+EkZY WJyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747406531; x=1748011331; h=subject:from:to:message-id:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lwh9CjiYwbQ6nlIjQPnEriMMwDU4zVi5CQQeJ8VSXDw=; b=lV518KjG7JTv/ysRVRdgf3msgPzcSMpdoqqwOR6PyNVYlTp0MMJLXKFF4DLAa2Z4bq bqZhHCWQtwmMfDcH1x3uvild8mOECt+z/3Gx1tHb+yFbzNnR07zMGkjFJN1uJM5zcEA7 mjfAOAqkRNrAj3jiwO14iNdxCRAVAwXZdtmIRjF0QRVnyP/Pf94xvsUAdpV+LlbXzNCD 4l9/1sQBSorT9Ye4q13eYm/YsBoTMw/PzLUO4TPL02OWsm5E/N9x6q/yIary4g+d3CZG Y1bkj2yDHJsbQX1qptdXvrzEnyyU503RvaloSY2I6/TXpkrolsL5lZpfLBrqVYAacdRb 1jwg== X-Gm-Message-State: AOJu0YzY79j/iR8p3jgXk6Fp0uUxspkU/bl1PI9546Dwl76ToyIeOc+Y /nONlyw3NYdwihNZBZHaQvNmZ6a6ZgFE1ujyor+bXJGk3gglv6wlQXMTJ25zSQ== X-Gm-Gg: ASbGncsN9fW4hh7s5JRqlRyzFtQ19VshepXFIEkfBIcxJhQfe8c4/+poOXktIdAQ0ii EBtuw4nOHBVH0urHwMvFHRnkJX6J7LgB2W6+/kgo9xvyPqI7haWwt+LDuyw//gEjHMmfy+ukiaF 3R6R4a4mQX5AzlUUyUkBMSzv6e/oXUkBYuCWinLEPjr/rt7jH0XTpp20PlgN07fdDaHicqrfmKs hjEYkQs9C5IeSFMm/9ADRLJz8ysmrlnCKRtU7hLVrHRCZfNpUIQnYDzYNqlGubSShbMQc0XwiD9 yLrW8k+W6VhJzRIFwdPgRsPgn/zRRFDvEzP5vPBtWunG4D0GPg== X-Google-Smtp-Source: AGHT+IF2OG8RUruBYYr//BA+9/wZloL1RVM81oYrNDr7qaxoSOzuinjAGGcS49v5R8qZ6UexGDyhEw== X-Received: by 2002:a17:90b:534e:b0:2ef:67c2:4030 with SMTP id 98e67ed59e1d1-30e7d5b7599mr5308131a91.27.1747406531009; Fri, 16 May 2025 07:42:11 -0700 (PDT) Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-30e33233f57sm5795325a91.0.2025.05.16.07.42.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 May 2025 07:42:10 -0700 (PDT) Date: Fri, 16 May 2025 23:42:07 +0900 Message-Id: <871psohb28.fsf@gmail.com> To: control@debbugs.gnu.org From: Maxim Cournoyer Subject: control message for bug #78422 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 78422 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Mon May 19 10:16:58 2025 Received: (at 78422) by debbugs.gnu.org; 19 May 2025 14:16:59 +0000 Received: from localhost ([127.0.0.1]:41654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uH1IY-00039Q-7F for submit@debbugs.gnu.org; Mon, 19 May 2025 10:16:58 -0400 Received: from latitanza.investici.org ([2001:888:2000:56::19]:20791) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uH1IU-00038o-Jz for 78422@debbugs.gnu.org; Mon, 19 May 2025 10:16:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1747664211; bh=ExQJaDx7FMu8c9sbaDBrhGJpj27bPnu+7mycTJFt1Vg=; h=From:To:Cc:Subject:Date:From; b=PGfB/AxXQJyGaAVJgagnVhItxScd1wf2e9LsZe8y0B3yDl+kylyiafCXO0cad55Kg AX3UeRKmaziwRTIIEsDDuBcEYMA89//9PJfpSJdHEulXIENC19XMXTigiktw0Akr/V xc9EWQw9rdt1QDsmaBV7dnJQzAW3s0z40dwi2mMI= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4b1KW71VFmzGprF; Mon, 19 May 2025 14:16:51 +0000 (UTC) Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4b1KW66YF8zGpr9; Mon, 19 May 2025 14:16:50 +0000 (UTC) From: Cayetano Santos To: 78422@debbugs.gnu.org Subject: [PATCH electronics-team v3] gnu: Add python-apycula. Date: Mon, 19 May 2025 16:16:17 +0200 Message-ID: <95f594e9bb4e2a081499d9f17d70266afd6a14dd.1747664177.git.csantosb@inventati.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Debbugs-Cc: Cayetano Santos , Ekaitz Zarraga , Gabriel Wicki , Maxim Cournoyer Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78422 Cc: Cayetano Santos X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/electronics.scm (python-apycula): New variable. Change-Id: I8e65416c1a555be189e9b8433d1ec7165aee16e9 --- gnu/packages/electronics.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index dc9de79ffa..2736df4b3c 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -29,6 +29,7 @@ (define-module (gnu packages electronics) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system pyproject) + #:use-module (guix build-system python) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) @@ -560,6 +561,38 @@ (define-public pulseview (description "PulseView is a Qt based logic analyzer, oscilloscope and MSO GUI for sigrok.") (license license:gpl3+))) +(define-public python-apycula + (package + (name "python-apycula") + (version "0.19") + ;; The pypi tar.gz file includes the necessary .pickle files, not available + ;; in the home-page repository. + (source + (origin + (method url-fetch) + (uri (pypi-uri "Apycula" version)) + (sha256 + (base32 "034crnlrb3dlwwc75gpskyz47jvhcv0c3l74z5rpyz622ajv46d6")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f ;requires Gowin EDA tools + #:phases + #~(modify-phases %standard-phases + ;; Fix error related to import of 'apycula.gowin_bba'. + (add-after 'unpack 'sanity-check-fix + (lambda _ + (substitute* "setup.py" + (("'gowin_bba") + "# 'gowin_bbva"))))))) + (propagated-inputs (list python-crc)) + (native-inputs (list python-setuptools python-wheel)) + (home-page "https://github.com/YosysHQ/apicula/") + (synopsis "Gowin FPGA bitstream format") + (description + "The project Apycula provides tools to support development and +generating bitstreams with Gowin FPGAs.") + (license license:expat))) (define-public python-edalize (package base-commit: 450a361532573a02389530a6a80b7821683ed41b -- 2.49.0 From debbugs-submit-bounces@debbugs.gnu.org Mon May 19 13:10:38 2025 Received: (at 78422) by debbugs.gnu.org; 19 May 2025 17:10:38 +0000 Received: from localhost ([127.0.0.1]:43623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uH40c-0003dv-IM for submit@debbugs.gnu.org; Mon, 19 May 2025 13:10:38 -0400 Received: from cotopaxi.ee.ethz.ch ([129.132.148.196]:34153) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uH40Z-0003cr-DQ for 78422@debbugs.gnu.org; Mon, 19 May 2025 13:10:36 -0400 Received: from silvi (212-51-128-25.fiber7.init7.net [212.51.128.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: gabriel) by cotopaxi.ee.ethz.ch (Postfix) with ESMTPSA id DA1062002B; Mon, 19 May 2025 19:10:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=erlikon.ch; s=20250312; t=1747674628; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Dgh+isT/jx882rYvUR1ak6Lx/SA4QisXMS5Ig2dModk=; b=J+lhPfy+MyJPLOeDLkC/NPSFYwlmCtaOgDQhmjlZ3bCDHHgH1NYGzkJ0XflIm9X7KqoG/U XoX3Qb3d9Ix6EKFjPkeKDw3OGNvqrYCdaI7ILeBrYbTMLaZS57EBdGWfTJPHQWEInNlTsx ZmtvpKeBPEmP2KBV/1xLXlnWfgqpoMWtqN/fImoqMFOnMMHX+g/IHuQxX4q27/J3Iqumeq EujK5Ibu5nvRbZGobcxFmm+KQiCyOHV6IwzUFv2WaHrISiLMURv50IbHQhwYgHMcuEkSRV eKSaoSIfaGdTOFBFKxugkgBXM25nJIibSS3MPbclxNq6V8b80nrUB0ZeThye4UcHmOvtew LUBsCJIsEkvnpBBvGtocOG+2CgQn0ioHhwL1kDXPdoGJ0qM6Dor1LXZ74U7DMLbEaCzJUZ jUsEFTPvBNFzIlBX9tHOPiyxvOcS9cnTK5DzgFcr2KwRny6dJXIfhNV2+y1kF0x0cbB8Vw mj+k7zr/oaYWVXJi5Qj8Ayf//g8BGFiUe22+wuHzCXdNirc1CC0b8+vVVzLAA5c9aAWKyS 9wsTKI7uZza5LSnJ0yhR0uTFTbTxHbXdGuHmD1y+V/bpBtmLZtDxl9NNyd3cLX3FJlaZLB gLUGSmoXCmWKkczVOYRqaR2d2twgfJZi09zVoCqLYGhOWRml6dOoA= Date: Mon, 19 May 2025 19:10:24 +0200 From: Gabriel Wicki To: Cayetano Santos Subject: Re: [bug#78422] [PATCH electronics-team v3] gnu: Add python-apycula. Message-ID: References: <95f594e9bb4e2a081499d9f17d70266afd6a14dd.1747664177.git.csantosb@inventati.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <95f594e9bb4e2a081499d9f17d70266afd6a14dd.1747664177.git.csantosb@inventati.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78422 Cc: 78422@debbugs.gnu.org, Maxim Cournoyer , Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) LGTM From debbugs-submit-bounces@debbugs.gnu.org Tue May 20 19:18:33 2025 Received: (at 78422) by debbugs.gnu.org; 20 May 2025 23:18:33 +0000 Received: from localhost ([127.0.0.1]:38814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHWEC-0004TC-VK for submit@debbugs.gnu.org; Tue, 20 May 2025 19:18:33 -0400 Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]:54336) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uHWE9-0004SA-Nr for 78422@debbugs.gnu.org; Tue, 20 May 2025 19:18:30 -0400 Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-7c5ba363f1aso875370685a.0 for <78422@debbugs.gnu.org>; Tue, 20 May 2025 16:18:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747783104; x=1748387904; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=vPr25/VTCxNAoMYN2PKDikU3c4Re+xFv3k7I/poRhFM=; b=lQ1SKrRhWvqNiLkNjsLL5c3TbxcYeEPF4QOHXYGUeNeiS0U+LmXRQV8AGCU9HqqCnu Q1J+Zrp/SCqTKd8leXOMt/VvW3k/gg1EUDC1EX4XQ7hK/6jBXGr8jjgHLImhfxDjh+NA xicbXRFxIQ6DJ6Q3BqeJ52dSnO4HM1HlRvb2y+yI9U4Npv+iIrlOBu/+wgi/PyJXXycg AD+MEadZAUOETh1hGALJHCRxXR0DfFrxrGmMe9idq1u+MelEfgrW6U1Ppj01FqU24Xcz ubznHTiuHkCWrkJJCo1cY8jRRvB99nXTcd452GcRRnCJ6PZnXs6oJ8QRSlA63GRK16Et ztDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747783104; x=1748387904; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=vPr25/VTCxNAoMYN2PKDikU3c4Re+xFv3k7I/poRhFM=; b=WphXPd6tn30umJO7nonEXBadkZIW8kpOxjI7CTfMMjzm/z08vSb3xHVlxxWKGaOpyo YTz5tCBZDtu6rgXzi62nfR8pnXqR2toAORJp5WYY/mH03wT+F19jrFJp4nYMoy2bCc2a 7+we/i3EoVGZx2QgAHzD2N8TFwKJ01SU4fPz7xJ8Ora5X+EPojcWIp6r+SS8CGQ/w6kr gFCGpK4tJMemUbe9f4s1X8b4lYwP3RC6OPnlANkaBdLlYjRxqM+35lCL9JelxPwHP1R9 ivi2vg0bqsjSdLZunvpQ9CcyKq26ScTqr8FQkkWp8hUQjl4+Y3F++JuZ9ihk98sWgxHP 3LJQ== X-Gm-Message-State: AOJu0YxiR+0amhyWdzVRscogdq4WdZ1JRm42lRJ53xbaJYNS480IpUYh 2L+dLQ0B0XIu+Ll9FuakGj/vwwkb3DU0Sg/TVt4E/sd2bhHOuaF7WG/ZmjqPU5QdxCw= X-Gm-Gg: ASbGnctBPy+2Y4K0PeIiwLX4y4OycnCgJZCNS5pJZxTS8o2smSOGjP0YAfd6hrJh240 j2D8pBwPqEyZ+4jFK/069AzCjACs0HcIUrKD4MOyZzZ+bFhjYS8BsRxCAeo2W/tT2DKOK7Ge/dt exWIgpW/OBYoF+XHEXfr03iBexQiMqLulRgKxHVSlODZicFK0UcdwNljuMF0/X/+IUUSGUAXDMx DYdsFTpzvknof7K8oi6f/+h+gcZJQSRv147Zobg/IxVZcrdDyPwSfvoLRVVtFBxJVdhzQb4jhG4 K6LJDmDOEB2Jlg/nLZcTL/OK8rxf8psgFJcitPEI0N7mZ4gCINxC6Df0dyKp1iqKgfAgCQET X-Google-Smtp-Source: AGHT+IEs/+ASNq8wf4qimmU8h6tzj5A5A5XmXANblpCsPm1laGuTUjhRsgM6qK7BmI56PqBSE/zPxw== X-Received: by 2002:a05:620a:2686:b0:7ce:bdb5:ba8e with SMTP id af79cd13be357-7cebdb5c059mr1553848485a.49.1747783103920; Tue, 20 May 2025 16:18:23 -0700 (PDT) Received: from terra (vps-6234970c.vps.ovh.ca. [51.222.13.224]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7cd468b6cfdsm795580085a.83.2025.05.20.16.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 May 2025 16:18:23 -0700 (PDT) From: Maxim Cournoyer To: Cayetano Santos Subject: Re: bug#78422: [PATCH electronics-team] gnu: Add python-apycula. In-Reply-To: <95f594e9bb4e2a081499d9f17d70266afd6a14dd.1747664177.git.csantosb@inventati.org> (Cayetano Santos's message of "Mon, 19 May 2025 16:16:17 +0200") References: <95f594e9bb4e2a081499d9f17d70266afd6a14dd.1747664177.git.csantosb@inventati.org> Date: Wed, 21 May 2025 08:18:19 +0900 Message-ID: <87ldqqan2c.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78422 Cc: Gabriel Wicki , 78422@debbugs.gnu.org, Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Cayetano Santos writes: > * gnu/packages/electronics.scm (python-apycula): New variable. > > Change-Id: I8e65416c1a555be189e9b8433d1ec7165aee16e9 > --- > gnu/packages/electronics.scm | 33 +++++++++++++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > > diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm > index dc9de79ffa..2736df4b3c 100644 > --- a/gnu/packages/electronics.scm > +++ b/gnu/packages/electronics.scm > @@ -29,6 +29,7 @@ (define-module (gnu packages electronics) > #:use-module (guix build-system cmake) > #:use-module (guix build-system gnu) > #:use-module (guix build-system pyproject) > + #:use-module (guix build-system python) > #:use-module (guix download) > #:use-module (guix gexp) > #:use-module (guix git-download) > @@ -560,6 +561,38 @@ (define-public pulseview > (description "PulseView is a Qt based logic analyzer, oscilloscope and MSO GUI > for sigrok.") > (license license:gpl3+))) > +(define-public python-apycula > + (package > + (name "python-apycula") > + (version "0.19") > + ;; The pypi tar.gz file includes the necessary .pickle files, not available > + ;; in the home-page repository. That sounds like potentially bundled pre-generated sources (I hope not binaries?). How are these generated? Ideally we'd generate everything needed from sources. -- Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Tue May 20 19:23:56 2025 Received: (at 78422) by debbugs.gnu.org; 20 May 2025 23:23:56 +0000 Received: from localhost ([127.0.0.1]:38867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHWJP-0004ys-Sp for submit@debbugs.gnu.org; Tue, 20 May 2025 19:23:56 -0400 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]:42153) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uHWJM-0004xp-Kq for 78422@debbugs.gnu.org; Tue, 20 May 2025 19:23:53 -0400 Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-6f8c3db8709so48061656d6.0 for <78422@debbugs.gnu.org>; Tue, 20 May 2025 16:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747783427; x=1748388227; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ABaDzPdjRguc05JjNnprjtewaVvLK8fLGADvmvhwlhM=; b=ZTpNrZJy7eX330HbpbIHAoy95lmK8itg+yA/snQAHHNACMhNEy61OfD40FwLsBwQpn wpyvB6Zf8JQebo0ZzPr3N0KclkugoybcnLeQUxTKg5HkFo+3Vn5PA+cbAs/y4OHS+nHo VSZIqnJPJUHhUensmGTsVUc+zgucQTRJ1rAuoHJYPNahndYUh3OOshJD9KZ1zy2elcBO /6OcxQIS+6mxGHQuDrQkBp5Xj5o3bdz3MSIBv7EKL7S2mS9q2Zwch7rvhen6WdSF6LhV B0XOoF0Pyo2z44lwGf+/S/SoVCgfwsV/8C/NN96y3/d8Cgi9rO2QY3Kk6GAyRQ3Q6wZ0 Ca5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747783427; x=1748388227; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ABaDzPdjRguc05JjNnprjtewaVvLK8fLGADvmvhwlhM=; b=KHqiI7Z9TOuwuYilwqDLQGV9yplwLTYY8isAoyl/9EgCk10MT7Q60CYeSPQLEipu62 SDrPm01k/Xplrh+mQel2EB1OgHlbeX3L9t9j53PgreDUUQqKWLt3tWR0a1tjpEwm6NCw fPlhV5EAEXgw3IHl1iMtAn2umpTZ9LwBzsrBvx0jphWlwdd+flRI2x4Blz9s+o5gF9yh /aRAF6H5LW0oPzmOZP33V2rMzZ0DD9BMrVjOyJAslzucT3HYxsJDpYlro9eo/v22dFG0 XB2GvYZ+0PWTi/sJqRI0izXYh29p+fQVbSQFX9SBLlEm2LztjEGZgH0ClB/73XQ9R+2K D2Mw== X-Gm-Message-State: AOJu0Yx/XslGA3GCeugSbFI2SeKRdiqx/CAMyWRCppHqyfTRdBEfJXMg NiYPZ3NV3CuDdwQNp6xApSyr9ngER7hAS6molqrcdWjVEh2ohVyAGZdEBaYhtPNneog= X-Gm-Gg: ASbGncvX3nGjmoaWw0MJBk3tRA/vGEFKKw4XpbUurQRRvclcL+1+o1ZIeYgYFFRNp4k IHZhTCeU+twvh7GWWq5hwlJHsuynySWn5V1HvEO31HJe5WEw3moxYnl0zQTwuNVQlmymwSRXZRs uXMwkisGw1MqppDsthyUDnypa/h3A+NSk6u3qisqafHRdLDaA+Kb1rzvC3pY0DwnFj1A2AZQXtj 2fO9nPW7xgtZxCFV0rEZggdvGjyCNL8hSr68q0zkr+fg6cJKtzmHRGzASY169FfGYKPRddO4LuP niPJ40enBYtEwPUtG1dBVR3wLg27BcI73ChWzRYwmqX+3E0llF1mnTnsgDSEbqjY73O7vFvw X-Google-Smtp-Source: AGHT+IG4EKMHvqyaezEADGUjjDkDsTtSHOTnt4RNEQiYGFevIu7MMnu6iUxQE6dIc+Ww/eBgVBoLyw== X-Received: by 2002:a05:6214:27c5:b0:6f8:bd05:c55 with SMTP id 6a1803df08f44-6f8bd05126emr266505336d6.19.1747783426843; Tue, 20 May 2025 16:23:46 -0700 (PDT) Received: from terra (vps-6234970c.vps.ovh.ca. [51.222.13.224]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6f8b0884015sm77719266d6.19.2025.05.20.16.23.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 May 2025 16:23:46 -0700 (PDT) From: Maxim Cournoyer To: Cayetano Santos Subject: Re: bug#78422: [PATCH electronics-team] gnu: Add python-apycula. In-Reply-To: <95f594e9bb4e2a081499d9f17d70266afd6a14dd.1747664177.git.csantosb@inventati.org> (Cayetano Santos's message of "Mon, 19 May 2025 16:16:17 +0200") References: <95f594e9bb4e2a081499d9f17d70266afd6a14dd.1747664177.git.csantosb@inventati.org> Date: Wed, 21 May 2025 08:23:42 +0900 Message-ID: <87h61eamtd.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78422 Cc: Gabriel Wicki , 78422@debbugs.gnu.org, Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Cayetano Santos writes: > * gnu/packages/electronics.scm (python-apycula): New variable. > > Change-Id: I8e65416c1a555be189e9b8433d1ec7165aee16e9 > --- > gnu/packages/electronics.scm | 33 +++++++++++++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > > diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm > index dc9de79ffa..2736df4b3c 100644 > --- a/gnu/packages/electronics.scm > +++ b/gnu/packages/electronics.scm > @@ -29,6 +29,7 @@ (define-module (gnu packages electronics) > #:use-module (guix build-system cmake) > #:use-module (guix build-system gnu) > #:use-module (guix build-system pyproject) > + #:use-module (guix build-system python) > #:use-module (guix download) > #:use-module (guix gexp) > #:use-module (guix git-download) > @@ -560,6 +561,38 @@ (define-public pulseview > (description "PulseView is a Qt based logic analyzer, oscilloscope and MSO GUI > for sigrok.") > (license license:gpl3+))) > +(define-public python-apycula > + (package > + (name "python-apycula") > + (version "0.19") > + ;; The pypi tar.gz file includes the necessary .pickle files, not available > + ;; in the home-page repository. It looks like running just 'make' in the repository should suffice to generate the .pickle files, which are apparently some database files ("chipdb") [0]. Could you give it a try, and perhaps fetch from git instead to avoid the pregenerated sources (else clean it up in a snippet phase) ? Thanks! [0] https://github.com/YosysHQ/apicula/blob/master/Makefile -- Maxim From debbugs-submit-bounces@debbugs.gnu.org Tue May 20 19:42:00 2025 Received: (at 78422) by debbugs.gnu.org; 20 May 2025 23:42:00 +0000 Received: from localhost ([127.0.0.1]:39051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHWau-0006g2-8s for submit@debbugs.gnu.org; Tue, 20 May 2025 19:42:00 -0400 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:45357) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uHWas-0006fl-Ip for 78422@debbugs.gnu.org; Tue, 20 May 2025 19:41:59 -0400 Received: by mail-qk1-x72d.google.com with SMTP id af79cd13be357-7cadd46eb07so664745985a.3 for <78422@debbugs.gnu.org>; Tue, 20 May 2025 16:41:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747784513; x=1748389313; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ibnjRKvlr1LYZVXR/tF8FTdDUoKrGmlu80FUQU6oxQI=; b=PS27Eke6jydXBMiqz4jryL04sjDBOgn+VgCpAF+kxsggNuIe7GKSXUaVKWSKTNJtpR 2tyLEtDADQKVP6IDzeSm4jJUcgda6pA4PwNILvLy58D0QB8IcUuexq9kXG8DhzI7k3wb xi1vL0au1zpAIzNnFR212d+HLSCl4xFvkFFmsQEu0Wk8jqeVUZ/5oXAAerS73MmtVNkl QdHORHErT7cR1tKTZiTG5F3xEoAjeRSRy9uKbGUrAexu3cSFApk3LjYCQxGc6Prv22zC euCnAjJ1zLy0lrWiCJUuuACldwXEAC4XbNhSjxynmmkOo+Bll4PAS/g12mT8wAuPuuSr kr0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747784513; x=1748389313; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ibnjRKvlr1LYZVXR/tF8FTdDUoKrGmlu80FUQU6oxQI=; b=jp80H4UBdzhCSmZiZzduoHS1jJdKMB0w9uN0KJLhPIp8M2pRpzKeP92kTL/gzrW6L3 GauLkGxapLf+UDGd7AGDQEG+HgIpIiY+PD/lO51X4Ls/WBIe3ZKZAbvDq8tuxXcbFPap t4Eee/Aj2ZSCDo6a0DaFvI/yFjcgSm5xB9XOPS3F7yE/F/AGzB7h/DNUK5Jw+RoCx55B 9hFTpk8TABqYvtZ23cnAFAhKtx28vLjQcVj8fQwS/1P3pmpMKwiBCcwVZl0EaYYxPNLN vLLNkiHP0upKLs9/4WVYTbSHTA3x1U2W58yPTfTDm7oqCNVVyn7tMvKg8I3avEReW+o0 gIpg== X-Forwarded-Encrypted: i=1; AJvYcCU9rP8SJQ6WRvQW6GNgml2kEEV3OAyyF/ysiuhZjZi+dy2V7YiS4C5dFFMh7Dcpr3vG0vDC5Q==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxwJ4lMhdn1Kanlun1EnuKMoef8BPqAqjau7dhAybMSChT23vwK TDELUsGkkE9tte8Ll/J1eDErwpXPyWiUWl3VW0M0Vd+FHYRwegZI3giK X-Gm-Gg: ASbGncuxda5dsU45kh2vpHShoatRezyJzE7AkpJeWeYwzbIAgYhYXP3gJz9ROFCbhzu +102lOlb5LTfJaVPjaHT90eoaDSb3herLku+azNSTdCzLcL1H5qEELlvW5LkwLLBb2J1rfTwNTo T8GxG89AlWTVZ9x7BpoBjsxp3XcUWvpYxLWoUazs1p/D6XaZg/9tGQya7TZcUlZIO0yaXK3wCO5 Xd52aR2aG+79sknc7V6D+MTaUhSY9vR2Md56cf8lmorYMrD1fGKEI3e4d2thgMawXHAgjjUAa0F 6QjPjavIUc8xlg9DT5yVzKFnsR6lpe1m5zZHcYqa9plfgSN1UDldZlqz1aUv7tbpoaqN+mQK X-Google-Smtp-Source: AGHT+IGrunrIUiWUitC4/BtirZioUy9oCD43URbmk0nj4TB4X89cwhV2YkO9R79KLUrkHog+3RoRcw== X-Received: by 2002:a05:620a:3914:b0:7c0:be39:1a34 with SMTP id af79cd13be357-7cd4677ddc9mr2836737085a.43.1747784512847; Tue, 20 May 2025 16:41:52 -0700 (PDT) Received: from terra (vps-6234970c.vps.ovh.ca. [51.222.13.224]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7cd467dc0a8sm796892585a.43.2025.05.20.16.41.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 May 2025 16:41:51 -0700 (PDT) From: Maxim Cournoyer To: Cayetano Santos Subject: Re: [bug#78422] [PATCH electronics-team v3] gnu: Add python-apycula. In-Reply-To: (Gabriel Wicki's message of "Mon, 19 May 2025 19:10:24 +0200") References: <95f594e9bb4e2a081499d9f17d70266afd6a14dd.1747664177.git.csantosb@inventati.org> Date: Wed, 21 May 2025 08:41:47 +0900 Message-ID: <87cyc2alz8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78422 Cc: Gabriel Wicki , 78422@debbugs.gnu.org, Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, I tried locally, this is my local changes so far: --8<---------------cut here---------------start------------->8--- (define-public apycula (package (name "apycula") (version "0.19") ;; The pypi tar.gz file includes the necessary .pickle files, not available ;; in the home-page repository. (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/YosysHQ/apicula") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0i3p3x3hs7c2dw5g6wa5g9lh551f5drb0abp7p3gkcfq4hi7bwm0")))) (build-system pyproject-build-system) (arguments (list #:tests? #f ;requires Gowin EDA tools #:phases #~(modify-phases %standard-phases (add-after 'unpack 'generate-chipdb-files (lambda _ (invoke "make" "GOWINHOME=/tmp"))) (add-after 'unpack 'sanity-check-fix (lambda _ ;; The module name changed (see: ;; https://github.com/YosysHQ/apicula/issues/337). (substitute* "setup.py" (("'gowin_bba") "# 'gowin_bbva"))))))) (native-inputs (list python-setuptools python-wheel ;gowin-eda ;; PACKAGE ME! )) (inputs (list python-crc)) (home-page "https://github.com/YosysHQ/apicula/") (synopsis "Gowin FPGA bitstream format") (description "The project Apycula provides tools to support development and generating bitstreams with Gowin FPGAs.") (license license:expat))) --8<---------------cut here---------------end--------------->8--- I'm fetching from git, and renamed the package to just 'apycula' since it appears intended to be used as tools (commands), not as a library. I've also reported the bug found upstream and linked it here. Thus we can also make propagated-inputs just inputs, since they are captured in the command wrapper scripts. The problem now is that to generate the chipdb files we need gowin-eda. Since this would also enable running the test suite, I think gowin-eda should be packaged first and added to the native inputs here: --8<---------------cut here---------------start------------->8--- starting phase `generate-chipdb-files' python3 -m apycula.tiled_fuzzer GW1N-1 Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/tmp/guix-build-apycula-0.19.drv-0/source/apycula/tiled_fuzzer.py", line 231, in with open(f"{gowinhome}/IDE/share/device/{device}/{device}.fse", 'rb') as f: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/tmp/IDE/share/device/GW1N-1/GW1N-1.fse' make: *** [Makefile:12: GW1N-1_stage1.pickle] Error 1 error: in phase 'generate-chipdb-files': uncaught exception: %exception #<&invoke-error program: "make" arguments: ("GOWINHOME=/tmp") exit-status: 2 term-signal: #f stop-signal: #f> phase `generate-chipdb-files' failed after 0.1 seconds --8<---------------cut here---------------end--------------->8--- Cayetano, could you please try packaging gowin-eda and using it here, to get past the above issue? And see if we can enable the test suite too! -- Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Wed May 21 04:29:54 2025 Received: (at 78422) by debbugs.gnu.org; 21 May 2025 08:29:54 +0000 Received: from localhost ([127.0.0.1]:44508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHepm-0006WH-9e for submit@debbugs.gnu.org; Wed, 21 May 2025 04:29:54 -0400 Received: from devianza.investici.org ([198.167.222.108]:32983) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uHeph-0006W0-Ew for 78422@debbugs.gnu.org; Wed, 21 May 2025 04:29:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1747816187; bh=fAhwtmd+FpdScPQk0p2UdwWBMYfOkpe6G69iWrbpXsw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=MOpi+xmtD91P6quYex/4DsYo+Ba7bgQIadCROyT4X6P+AvmBILW5mu4QDF7G+gwT9 GUM8evToixVY66q5FxDx3Z6hoEcSkOTEoOyL45DOnwTnR3BgUcYbMBAeloEB3trNpi pu1GQo1nzInLywHjpFydjIlPpvuhe0Qq+kEbS8Iw= Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4b2Pjl37ldz6xnQ; Wed, 21 May 2025 08:29:47 +0000 (UTC) Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4b2Pjl0gZDz6xnD; Wed, 21 May 2025 08:29:47 +0000 (UTC) From: Cayetano Santos To: Maxim Cournoyer Subject: Re: [bug#78422] [PATCH electronics-team v3] gnu: Add python-apycula. In-Reply-To: <87cyc2alz8.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 21 May 2025 08:41:47 +0900") References: <95f594e9bb4e2a081499d9f17d70266afd6a14dd.1747664177.git.csantosb@inventati.org> <87cyc2alz8.fsf@gmail.com> User-Agent: mu4e 1.12.9; emacs 29.4 Date: Wed, 21 May 2025 10:29:45 +0200 Message-ID: <87v7pu8iyu.fsf@inventati.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78422 Cc: Gabriel Wicki , 78422@debbugs.gnu.org, Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >mer. 21 mai 2025 at 08:41, Maxim Cournoyer wro= te: Hi Maxim, > I'm fetching from git, and renamed the package to just 'apycula' since > it appears intended to be used as tools (commands), not as a library. Just for the record, this package would allow including support for gowin in guix nextpnr package, see [0], implementing a whole guix workflow for gowin fpgas. > The problem now is that to generate the chipdb files we need gowin-eda. > Since this would also enable running the test suite, I think gowin-eda > should be packaged first and added to the native inputs here: Sorry, my bad. I assumed pickle files were acceptable for guix, while clearly they are not. Now, gowin-eda [1] are proprietary tools, for as much as I know, so I=E2=80= =99m afraid this is a closed path for us, unless I figure out a clean way to obtain the necessary files under a free license. I=E2=80=99ll take the time= to investigate, Thanks again for your help, C. [0] https://research.utwente.nl/files/249654527/DeVos2020complete.pdf [1] https://www.gowinsemi.com/en/support/home/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iI0EARYKADUWIQTMuBhC+dcFjs1nN3q/XN9N9r9mggUCaC2O+RccY3NhbnRvc2JA aW52ZW50YXRpLm9yZwAKCRC/XN9N9r9mgn7yAQDYppOVfddKq//FPiotT/XYWp2/ wWnM8g0IRKwujxud+AD/RcA6v/dHPwQhtWFFxbMPaTiPk2/nqffZsSMsDoVwmg8= =VSTL -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 21 05:14:51 2025 Received: (at 78422) by debbugs.gnu.org; 21 May 2025 09:14:52 +0000 Received: from localhost ([127.0.0.1]:45015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHfXH-0002b9-4h for submit@debbugs.gnu.org; Wed, 21 May 2025 05:14:51 -0400 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:43269) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uHfXD-0002aA-TO for 78422@debbugs.gnu.org; Wed, 21 May 2025 05:14:48 -0400 Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-b26c5fd40a9so6079259a12.1 for <78422@debbugs.gnu.org>; Wed, 21 May 2025 02:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747818881; x=1748423681; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ZACQZ+jGEHUi2U26o4XSJ9ro8rkpMz7S5NiPHiDjU4Q=; b=Y8RV7u58HR2q4GQRvMYjUaPeS9rfrSmZ+LBA/yizBcwC39qvAQ5M44Vf2VPsglvYY3 fX8Izu2/dJXrBldZEYT519ltNmE2RxxQa0xSWpf8ovlr6hyO4EEEWdYDMUYQnUX24XWJ I9eFtycKDZfiRTWli+FM02LTWQ6G1S8wzo9b2KmEpAizn+J46KWFxqiBhRktEJAtjRm2 93ac356Lwi3wB3nWS3qISszjmksI8a1cPG80rQLzdalWgr/XFHNsx9kjot2KokbTiQN3 SwK35XSuyC+UBpbeQJSzsHWEF2RcRa2D0SIcIFSTefRQrRrNJmYJd4KGsywsoMEsk0HD DjVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747818881; x=1748423681; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZACQZ+jGEHUi2U26o4XSJ9ro8rkpMz7S5NiPHiDjU4Q=; b=hu9LIOK+3ITCycZtDUpS6y/zNX69wW0u0KIBsFKEtgQBiVQXMKmgVQRFagkmk46n9Z /b2f6V7BI9YLbCidtbQv3GJrI76Lz8lrJScNYJjS/nqU/B5h2ypeX8rVpFxg0ITDZl5S cGMxUcypeRqe22v2DVv9lSEmtMnlQubT8xU9xbYN1wOVkzwE+cSN9BTivc691RW3hgtd +LArN0dsuFWRhfA76U8nlhH+I0cJ9jus0woMkofAkgX/eeB6nA03edlntSHiqzKQ3aVD OY6/ZELNO8kVLpQFRtV82ftnU7MH38YJgFcwmRTjk2LBjyvhaX5/jUPuq8YCQaBHZ/tR dkXA== X-Forwarded-Encrypted: i=1; AJvYcCUUW5gd8WGDrz8myQ3/NTcq/AwfqYLJHam67WsqWLYuDTBPAyPzR5Stioitoq592HWWqZBAyw==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yy3HROmSg2ZTKBIq7NJ2L4byAOq6M27j09J+PQKXVbJiM0hBUYL BJiwWLU80SE77gzzklhISJx37AzstQadz4YORHpU6AonCGzQQuucCrod X-Gm-Gg: ASbGnculRf8c/HmsYEEbQD2XpgoVICa4Vy7OtYqB72X/h7GWcRRJOMfOzPhXjrAmxDz yeihLdbqfMSYF9hlT4oWhEzqPPIZA14g+MwMjwpZaG8zYEYD0CsaUFHm1T6Qc9NbfcUKAiam/Rh +dZKdPAIR4P/L+4F9u+TCtFzIf2w5lKO9a0GAKUjSNAYUiPvViqOYH0TdZaN0LoHq/MYLN+dYlW KBhtwPhACT9Z3fqZttEH980GuNjRFV/kgO9beC9WXrIhtYKcy80Nn8OA1ivs5Lh1EMayI5uoCE5 zIgyBRx5H84MCfz/GPCg5PfnZZLI630X1wnLR8+DDxTL4SwpiN1OxjzHtfMM X-Google-Smtp-Source: AGHT+IGRvImHzQjl0d01lvaTsZOi+If7WRygICJye17nEQzcCCdRhAiGLJ1Yx8W6dNN+cVsoFt4OhQ== X-Received: by 2002:a17:903:22d0:b0:232:2ee:b661 with SMTP id d9443c01a7336-23202eeb6e6mr245516375ad.12.1747818881251; Wed, 21 May 2025 02:14:41 -0700 (PDT) Received: from terra ([2405:6586:be0:0:83c8:d31d:2cec:f542]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-231d4e97161sm89055105ad.153.2025.05.21.02.14.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 May 2025 02:14:40 -0700 (PDT) From: Maxim Cournoyer To: Cayetano Santos Subject: Re: [bug#78422] [PATCH electronics-team v3] gnu: Add python-apycula. In-Reply-To: <87v7pu8iyu.fsf@inventati.org> (Cayetano Santos's message of "Wed, 21 May 2025 10:29:45 +0200") References: <95f594e9bb4e2a081499d9f17d70266afd6a14dd.1747664177.git.csantosb@inventati.org> <87cyc2alz8.fsf@gmail.com> <87v7pu8iyu.fsf@inventati.org> Date: Wed, 21 May 2025 18:14:37 +0900 Message-ID: <87h61e8gw2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 78422 Cc: Gabriel Wicki , 78422@debbugs.gnu.org, Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hello, Cayetano Santos writes: >>mer. 21 mai 2025 at 08:41, Maxim Cournoyer wrote: > > Hi Maxim, > >> I'm fetching from git, and renamed the package to just 'apycula' since >> it appears intended to be used as tools (commands), not as a library. > > Just for the record, this package would allow including support for > gowin in guix nextpnr package, see [0], implementing a whole guix > workflow for gowin fpgas. Neat! >> The problem now is that to generate the chipdb files we need gowin-eda. >> Since this would also enable running the test suite, I think gowin-eda >> should be packaged first and added to the native inputs here: > > Sorry, my bad. I assumed pickle files were acceptable for guix, while > clearly they are not. They may be! Since they can be considered data files (thus non-funtional), the license terms per the GNU FSDG are relaxed: the license that applies to these may be non-free, and what matters is being able to redistribute these freely, without any restriction [0]. See the 'Non-functional Data' paragraph at [0]. [0] https://www.gnu.org/distros/free-system-distribution-guidelines.html -- Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Wed May 21 05:48:45 2025 Received: (at 78422) by debbugs.gnu.org; 21 May 2025 09:48:45 +0000 Received: from localhost ([127.0.0.1]:45262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uHg45-0005NH-2W for submit@debbugs.gnu.org; Wed, 21 May 2025 05:48:45 -0400 Received: from confino.investici.org ([2a11:7980:1::2:0]:55337) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uHg3x-0005M9-FP for 78422@debbugs.gnu.org; Wed, 21 May 2025 05:48:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1747820914; bh=mszT3lN5QYI0z9rpjQgedqOE4odvIC51e2JzFKd///M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=b3PgP2DgQE7tqF5BeYVjKNORKpD4xHvmf9Uyy0CDTojVnAya6DoU0mypzWJArUJJG HlAQqkmpY09U4FAOvb/c0P9ofIRTqyyCIMGiGFVFSIirkcSgumczHmQuVPWl3+LLTH AhymMEz1XuUBAxWN5Yhjrl6fWtmJDBXWjS9M229s= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4b2RSf0CL6z11HC; Wed, 21 May 2025 09:48:34 +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 4b2RSd4CFfz11H6; Wed, 21 May 2025 09:48:33 +0000 (UTC) From: Cayetano Santos To: Maxim Cournoyer Subject: Re: [bug#78422] [PATCH electronics-team v3] gnu: Add python-apycula. In-Reply-To: <87h61e8gw2.fsf@gmail.com> (Maxim Cournoyer's message of "Wed, 21 May 2025 18:14:37 +0900") References: <95f594e9bb4e2a081499d9f17d70266afd6a14dd.1747664177.git.csantosb@inventati.org> <87cyc2alz8.fsf@gmail.com> <87v7pu8iyu.fsf@inventati.org> <87h61e8gw2.fsf@gmail.com> User-Agent: mu4e 1.12.9; emacs 29.4 Date: Wed, 21 May 2025 11:48:31 +0200 Message-ID: <87tt5e70r4.fsf@inventati.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 78422 Cc: Gabriel Wicki , 78422@debbugs.gnu.org, Ekaitz Zarraga X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable >mer. 21 mai 2025 at 18:14, Maxim Cournoyer wro= te: >>> The problem now is that to generate the chipdb files we need gowin-eda. >>> Since this would also enable running the test suite, I think gowin-eda >>> should be packaged first and added to the native inputs here: >> >> Sorry, my bad. I assumed pickle files were acceptable for guix, while >> clearly they are not. > > They may be! Since they can be considered data files (thus > non-funtional), the license terms per the GNU FSDG are relaxed: the > license that applies to these may be non-free, and what matters is being > able to redistribute these freely, without any restriction [0]. See the > 'Non-functional Data' paragraph at [0]. This means a v4, including a ref to the issue you just open, might be accep= ted ? Otherwise, we have the huge and public educational distribution of the gowin ide [0] (the 784.12MB thing), but we=E2=80=99d rather avoid such an horror; anyway it is unclear to me the license which applies here. [0] https://www.gowinsemi.com.cn/faq.aspx --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iI0EARYKADUWIQTMuBhC+dcFjs1nN3q/XN9N9r9mggUCaC2hbxccY3NhbnRvc2JA aW52ZW50YXRpLm9yZwAKCRC/XN9N9r9mgg8EAQDhn+5lIxD4RUmbd/dre5Wlout2 eggpHxj8DFiEPsR3/AEAhm/T6qOMQUVs0nIKatbxAfHqEMvLCfHYUduRzxj2Yw8= =+cx8 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 10 05:03:45 2025 Received: (at 78422) by debbugs.gnu.org; 10 Jun 2025 09:03:45 +0000 Received: from localhost ([127.0.0.1]:34174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uOutU-0005NS-HX for submit@debbugs.gnu.org; Tue, 10 Jun 2025 05:03:44 -0400 Received: from confino.investici.org ([93.190.126.19]:24371) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uOutR-0005N9-8U for 78422@debbugs.gnu.org; Tue, 10 Jun 2025 05:03:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1749546218; bh=eAlYgZzL5l5g8cyx4W3vKciA5g97tSZ/ii/zLWIAI6Q=; h=From:To:Cc:Subject:Date:From; b=AwgMBEo+obfcblWl3vtSK+Oomj0N7kG3Nyji9m67QHjZtREbdbWSIFTdoDP4A8cWp 5TTIs/lQsRJKrEDYvwZmnZikA2zMM4xQUoh1hfEVNuaOwONeGxlzphZkvLZ0PRvhBb jmvX5bWmCZlgz/p1uU5gYaJepNKAzW7GYh6kGA8s= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4bGjWZ6fSRz115L; Tue, 10 Jun 2025 09:03:38 +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 4bGjWZ4C1Vz115B; Tue, 10 Jun 2025 09:03:38 +0000 (UTC) From: Cayetano Santos To: 78422@debbugs.gnu.org Subject: [PATCH electronics-team v4] gnu: Add apycula. Date: Tue, 10 Jun 2025 10:57:02 +0200 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-Debbugs-Cc: Cayetano Santos , Ekaitz Zarraga , Gabriel Wicki , Maxim Cournoyer Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78422 Cc: Cayetano Santos via Guix-patches via X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) From: Cayetano Santos via Guix-patches via * gnu/packages/electronics.scm (apycula): New variable. Change-Id: I8e65416c1a555be189e9b8433d1ec7165aee16e9 --- With respect to previous version: - updated to 0.20 - removed sanity-check-fix, as for github.com/YosysHQ/apicula/issues/337 - renamed package Pickle files in the tar.gz need to be produced with gowin-eda, which cannot be packaged. To my understanding, these files are distributed under a mit license. gnu/packages/electronics.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index 5910b5cc39..9a7c2b69df 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -29,6 +29,7 @@ (define-module (gnu packages electronics) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system pyproject) + #:use-module (guix build-system python) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) @@ -561,6 +562,31 @@ (define-public pulseview for sigrok.") (license license:gpl3+))) +(define-public apycula + (package + (name "apycula") + (version "0.20") + ;; The pypi tar.gz file includes the necessary .pickle files, not available + ;; in the home-page repository. + (source + (origin + (method url-fetch) + (uri (pypi-uri "Apycula" version)) + (sha256 + (base32 "1dyi14kydn2cq4zja9aqjn1ic78g453i18f3hy7a6bxn746291yz")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f)) ;requires Gowin EDA tools + (inputs (list python-crc)) + (native-inputs (list python-setuptools python-wheel)) + (home-page "https://github.com/YosysHQ/apicula/") + (synopsis "Gowin FPGA bitstream format") + (description + "The project Apycula provides tools to support development and +generating bitstreams with Gowin FPGAs.") + (license license:expat))) + (define-public python-edalize (package (name "python-edalize") base-commit: 5fd4df347e04b6cd3ce3fc91900f773a2e4824e3 -- 2.49.0