9 buildPythonPackage rec {
10 pname = "amaranth-boards";
11 version = "0-unstable-2023-12-13";
12 format = "setuptools";
13 # python setup.py --version
14 realVersion = "0.1.dev202+g${lib.substring 0 7 src.rev}";
16 src = fetchFromGitHub {
17 owner = "amaranth-lang";
18 repo = "amaranth-boards";
19 rev = "170675812b71ee722bcf8ccdb88409a9ad97ffe2";
20 hash = "sha256-dwZCKMJnEY9RjzkcJ9r3TEC7W+Wfi/P7Hjl4/d60/qo=";
23 nativeBuildInputs = [ setuptools-scm ];
24 propagatedBuildInputs = [ setuptools amaranth ];
27 export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
34 description = "Board definitions for Amaranth HDL";
35 homepage = "https://github.com/amaranth-lang/amaranth-boards";
36 license = licenses.bsd2;
37 maintainers = with maintainers; [ emily thoughtpolice pbsds ];