push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,85 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
pdm-backend,
jschon,
pyvcd,
jinja2,
importlib-resources,
importlib-metadata,
git,
# for tests
pytestCheckHook,
sby,
yices,
yosys,
}:
buildPythonPackage rec {
pname = "amaranth";
version = "0.5.7";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "amaranth-lang";
repo = "amaranth";
tag = "v${version}";
hash = "sha256-E/PJrvBmlS39KgzDz9sArq4BXwk/JmIMtdxL7MdrWlc=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "pdm-backend~=2.3.0" "pdm-backend>=2.3.0"
'';
nativeBuildInputs = [ git ];
build-system = [ pdm-backend ];
dependencies = [
jschon
jinja2
pyvcd
]
++ lib.optional (pythonOlder "3.9") importlib-resources
++ lib.optional (pythonOlder "3.8") importlib-metadata;
nativeCheckInputs = [
pytestCheckHook
sby
yices
yosys
];
pythonImportsCheck = [ "amaranth" ];
disabledTests = [
"verilog"
"test_reversible"
"test_distance"
];
disabledTestPaths = [
# Subprocesses
"tests/test_examples.py"
# Verification failures
"tests/test_lib_fifo.py"
];
meta = with lib; {
description = "Modern hardware definition language and toolchain based on Python";
homepage = "https://amaranth-lang.org/docs/amaranth";
changelog = "https://github.com/amaranth-lang/amaranth/blob/${src.tag}/docs/changes.rst";
license = licenses.bsd2;
maintainers = with maintainers; [
thoughtpolice
pbsds
];
mainProgram = "amaranth-rpc";
};
}