From 8be660ea5e0a7da02967ebf3225b456a4758bf0d Mon Sep 17 00:00:00 2001 From: Cayetano Santos Date: Thu, 12 Mar 2026 11:00:53 +0100 Subject: gnu: apycula: Update to 0.31. * gnu/packages/electronics.scm (apycula): Update to 0.31. [inputs]: Remove python-crc. [propagated-inputs]: Add python-cattrs, python-crcmod, python-numpy, python-msgpack, and python-msgspec. [native-inputs]: Add python-setuptools-scm. Merges guix/guix!6057 Change-Id: Ie5c8950a2632a168ed4686f744c06704495f5ddf --- gnu/packages/electronics.scm | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'gnu/packages/electronics.scm') diff --git a/gnu/packages/electronics.scm b/gnu/packages/electronics.scm index b6f80010f7e..5cd74f3f901 100644 --- a/gnu/packages/electronics.scm +++ b/gnu/packages/electronics.scm @@ -119,6 +119,7 @@ #:use-module (gnu packages python-build) #:use-module (gnu packages python-check) #:use-module (gnu packages python-compression) + #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-science) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) @@ -281,7 +282,7 @@ formal verification. This is the Yosyshq fork of ABC.") (define-public apycula (package (name "apycula") - (version "0.28") + (version "0.31") ;; The pypi tar.gz file includes the necessary .pickle files, not available ;; in the home-page repository. (source @@ -289,11 +290,24 @@ formal verification. This is the Yosyshq fork of ABC.") (method url-fetch) (uri (pypi-uri "apycula" version)) (sha256 - (base32 "0llwcz4fji4sbdajlr43spf3mgdaw42rm15va1l9zb8314fn7wq1")))) + (base32 "0pf43cd071kv5ann78hl5qrcj9vhndr46ds2g12sgnfjfvh6pfpg")))) (build-system pyproject-build-system) - (arguments (list #:tests? #f)) ;requires Gowin EDA tools - (inputs (list python-crc)) - (native-inputs (list python-setuptools)) + (arguments + (list #:tests? #f ;requires Gowin EDA tools + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-setup + (lambda _ + ;; Acceptable, but degraded performance. + (substitute* "setup.py" + ((".*fastcrc.*") ""))))))) ;TODO: Package python-fastcrc + (propagated-inputs + (list python-cattrs + python-crcmod + python-numpy + python-msgpack + python-msgspec)) + (native-inputs (list python-setuptools python-setuptools-scm)) (home-page "https://github.com/YosysHQ/apicula/") (synopsis "Gowin FPGA bitstream format") (description -- cgit v1.3