python312Packages.amaranth: disable failing tests

This commit is contained in:
Fabian Affolter
2025-01-11 21:26:29 +01:00
parent 5ef0268f7f
commit 589a387a44
@@ -20,8 +20,9 @@
buildPythonPackage rec {
pname = "amaranth";
format = "pyproject";
version = "0.5.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
@@ -33,12 +34,11 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail \
"pdm-backend~=2.3.0" \
"pdm-backend>=2.3.0"
--replace-fail "pdm-backend~=2.3.0" "pdm-backend>=2.3.0"
'';
nativeBuildInputs = [ git ];
build-system = [ pdm-backend ];
dependencies =
@@ -59,14 +59,28 @@ buildPythonPackage rec {
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";
mainProgram = "amaranth-rpc";
homepage = "https://amaranth-lang.org/docs/amaranth";
changelog = "https://github.com/amaranth-lang/amaranth/blob/v${version}/docs/changes.rst";
license = licenses.bsd2;
maintainers = with maintainers; [
thoughtpolice
pbsds
];
mainProgram = "amaranth-rpc";
};
}