10 buildPythonPackage rec {
11 pname = "amaranth-boards";
12 version = "0-unstable-2024-10-18";
17 tag = builtins.elemAt (lib.splitString "-" version) 0;
18 rev = lib.substring 0 7 src.rev;
20 "${tag}1.dev1+g${rev}";
22 src = fetchFromGitHub {
23 owner = "amaranth-lang";
24 repo = "amaranth-boards";
25 rev = "23c66d68045831de0a372c8c237274d74c71ef4e";
26 # these files change depending on git branch status
27 postFetch = "rm -f $out/.git_archival.txt $out/.gitattributes";
28 hash = "sha256-cC7uvj9+6h3RPbFdu3/T1t/jhw5CuLOF8aKwDSkRE54=";
31 build-system = [ pdm-backend ];
32 dependencies = [ amaranth ];
35 export PDM_BUILD_SCM_VERSION="${realVersion}"
41 passthru.updateScript = unstableGitUpdater { };
44 description = "Board definitions for Amaranth HDL";
45 homepage = "https://github.com/amaranth-lang/amaranth-boards";
46 license = licenses.bsd2;
47 maintainers = with maintainers; [