2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
amaranth,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2022-01-13 20:06:32 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "amaranth-boards";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0-unstable-2023-12-13";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2022-01-13 20:06:32 +00:00
|
|
|
# python setup.py --version
|
|
|
|
realVersion = "0.1.dev202+g${lib.substring 0 7 src.rev}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "amaranth-lang";
|
|
|
|
repo = "amaranth-boards";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "170675812b71ee722bcf8ccdb88409a9ad97ffe2";
|
|
|
|
hash = "sha256-dwZCKMJnEY9RjzkcJ9r3TEC7W+Wfi/P7Hjl4/d60/qo=";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
dependencies = [
|
|
|
|
setuptools
|
|
|
|
amaranth
|
|
|
|
];
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Board definitions for Amaranth HDL";
|
|
|
|
homepage = "https://github.com/amaranth-lang/amaranth-boards";
|
|
|
|
license = licenses.bsd2;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
emily
|
|
|
|
thoughtpolice
|
|
|
|
pbsds
|
|
|
|
];
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
}
|