Search Criteria
Package Details: python-amaranth-git 0.3.r19.g8b85afa-3
Package Actions
Git Clone URL: | https://aur.archlinux.org/python-amaranth-git.git (read-only, click to copy) |
---|---|
Package Base: | python-amaranth-git |
Description: | A modern hardware definition language and toolchain based on Python (formerly nMigen) |
Upstream URL: | https://github.com/amaranth-lang/amaranth |
Licenses: | BSD |
Conflicts: | python-amaranth, python-nmigen |
Provides: | python-amaranth, python-nmigen |
Replaces: | python-nmigen-git |
Submitter: | xiretza |
Maintainer: | Auerhuhn |
Last Packager: | xiretza |
Votes: | 3 |
Popularity: | 0.009662 |
First Submitted: | 2021-12-29 10:01 (UTC) |
Last Updated: | 2022-04-24 07:48 (UTC) |
Dependencies (13)
- python (python37AUR, python311AUR, python310AUR)
- python-jinja
- python-pyvcdAUR
- git (git-gitAUR, git-glAUR) (make)
- python-build (make)
- python-installer (python-installer-gitAUR) (make)
- python-setuptools-scm (make)
- python-wheel (make)
- python-pytest (check)
- symbiyosys-gitAUR (check)
- yices (check)
- yosys (yosys-gitAUR, yosys-nightlyAUR) (check)
- python-paramiko (python-paramiko-ngAUR) (optional) – for remote builds
Required by (12)
- python-amaranth-boards-git (requires python-amaranth)
- python-amaranth-soc (requires python-amaranth)
- python-apollo (requires python-amaranth) (optional)
- python-cynthion (requires python-amaranth)
- python-glasgow-git (requires python-amaranth)
- python-jtagtap-git (requires python-amaranth)
- python-luna-soc (requires python-amaranth)
- python-luna-soc-git (requires python-amaranth)
- python-luna-usb (requires python-amaranth)
- python-luna-usb-git (requires python-amaranth)
- python-minerva-git (requires python-amaranth)
- python-sphinxcontrib-hdl-diagrams (requires python-nmigen)
Latest Comments
Auerhuhn commented on 2024-06-09 18:48 (UTC)
Hi @xiretza,
In addition to the
pdm_build.py
patch proposed by @salfter, would you mind addingpython-jschon
to yourdepends
, andpython-packaging
andpython-pdm-backend
to yourmakedepends
?Without those entries,
python-amaranth-git
fails to build in a clean chroot.Regards
Claudia (aka Auerhuhn)
salfter commented on 2024-06-03 20:47 (UTC)
I've forked this repo:
https://aur.archlinux.org/packages/python-amaranth
It grabs the most recent release (currently v0.4.5) and builds it. It adds a
git checkout
to theprepare()
function, and applies the patch I posted below.salfter commented on 2024-06-03 19:32 (UTC) (edited on 2024-06-03 19:44 (UTC) by salfter)
FWIW, I maintain a Gentoo ebuild for this package. When upstream switched over to PDM, I found I had to patch pdm_build.py as follows:
Note that (1) I'm building from release tarballs instead of Git master and (2) url_version needs to be set to the actual version you're building. Whether this is applicable or not to the Arch PKGBUILD, I'm not certain. I might try my hand at knocking together a release-version PKGBUILD to see if it makes any difference.
Correction: my ebuild pulls from Git, but it uses the commit corresponding to the release. (Specifically, it uses
git-r3.eclass
and setsEGIT_COMMIT
andEGIT_BRANCH
as well asEGIT_REPO_URI
.) If I remember right, I had trouble building from the release tarballs for some reason.=sci-electronics/amaranth-0.4.5::salfter
builds against=dev-python/pdm-backend-2.2.1::gentoo
without error. I've noticed that the version of pdm-backend Arch is installing is 2.3.0. I keyworded pdm-backend to ~amd64 and rebuilt both pdm-backend (2.3.0) and amaranth without error, so it doesn't appear to be a matter of breakage between pdm-backend versions.m42uko commented on 2024-04-20 07:58 (UTC)
On my my system, this fails with
Maybe the Arch upstream of python-pdm is too old? Alternatively, we can consider working around this in the PKGBUILD by patching
$srcdir/amaranth/pyproject.toml
to remove theversion_format = "pdm_build:format_version"
and deletingsrc/amaranth/pdm_build.py
. I'll leave this decision up to you as I am not inherently familiar with this project (or python build systems for that matter).xiretza commented on 2022-04-24 07:58 (UTC)
python-amaranth-boards-git
is now packaged: https://aur.archlinux.org/packages/python-amaranth-boards-gitxiretza commented on 2022-04-24 07:33 (UTC)
Tests exist to tell you when something is wrong, simply not running them can hardly be considered a "fix" ;) Anyway, the issue is that amaranth targets the latest available yosys, so I changed the depends to reflect that.
amstan commented on 2022-04-24 07:32 (UTC) (edited on 2022-04-24 07:33 (UTC) by amstan)
We're also missing amaranth_boards, which without it's kind of hard to build anything real. I'm making do by just installing python-nmigen-boards (which seems happy "linking" to this package), but that uses the old style imports:
amstan commented on 2022-04-24 06:14 (UTC) (edited on 2022-04-24 06:14 (UTC) by amstan)
The
check()
fails for me. I guess there's some failures in the upstream tests:I fixed it (for myself, though YMMV) by telling pikaur to tell makepkg to not run check():
--mflags=--nocheck
FWIW I don't think this should be changed in the PKGBUILD, you might still want to run tests, idk what the philosophy of
check()
is normally.