From e6edc113cccdddcaed975b76deaab3c880d4158d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 25 Apr 2025 12:48:25 +0100 Subject: [PATCH] gnu: python-migen: Update to 0.9.2-0.2828df5. * gnu/packages/fpga.scm (python-migen): Update to 0.9.2-0.2828df5. [source]: Use the latest commit contains changes supporting Python 3.11. [build-system]: Switch to pyproject [native-inputs]: Add python-pytest, python-setuptools, and python-wheel. Change-Id: Id6eee0f2a034b60195fb433df731123c3b749f2d --- gnu/packages/fpga.scm | 59 +++++++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 25 deletions(-) diff --git a/gnu/packages/fpga.scm b/gnu/packages/fpga.scm index e1043efc48b..dfbe1a28946 100644 --- a/gnu/packages/fpga.scm +++ b/gnu/packages/fpga.scm @@ -467,31 +467,40 @@ simulator trace files (@dfn{FST}).") (license (list license:gpl2+ license:expat license:tcl/tk)))) (define-public python-migen - (package - (name "python-migen") - (version "0.9.2") - (source - (origin - ;; Tests fail in the PyPI tarball due to missing files. - (method git-fetch) - (uri (git-reference - (url "https://github.com/m-labs/migen") - (commit version))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1kq11if64zj84gv4w1q7l16fp17xjxl2wv5hc9dibr1z3m1gy67l")))) - (build-system python-build-system) - (propagated-inputs - (list python-colorama)) - (home-page "https://m-labs.hk/gateware/migen/") - (synopsis "Python toolbox for building complex digital hardware") - (description - "Migen FHDL is a Python library that replaces the event-driven -paradigm of Verilog and VHDL with the notions of combinatorial and -synchronous statements, has arithmetic rules that make integers always -behave like mathematical integers, and allows the design's logic to be -constructed by a Python program.") - (license license:bsd-2))) + ;; XXX: The latest version tag (0.9.2) was placed in 2019, there are latest + ;; changes supporting Python 3.11 on master branch, see + ;; . + (let ((commit "2828df54594673653a641ab551caf6c6b1bfeee5") + (revision "0")) + (package + (name "python-migen") + (version (git-version "0.9.2" revision commit)) + (source + (origin + ;; Tests fail in the PyPI tarball due to missing files. + (method git-fetch) + (uri (git-reference + (url "https://github.com/m-labs/migen") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0my2jwrb64n39dfcipiw9s2cbg1r4s6zh4ybf4dwid9hk86fi6hs")))) + (build-system pyproject-build-system) + (native-inputs + (list python-pytest + python-setuptools + python-wheel)) + (propagated-inputs + (list python-colorama)) + (home-page "https://m-labs.hk/gateware/migen/") + (synopsis "Python toolbox for building complex digital hardware") + (description + "Migen FHDL is a Python library that replaces the event-driven paradigm +of Verilog and VHDL with the notions of combinatorial and synchronous +statements, has arithmetic rules that make integers always behave like +mathematical integers, and allows the design's logic to be constructed by a +Python program.") + (license license:bsd-2)))) (define-public python-myhdl (package