From 589a387a44411609edcdaf42eb382148b4acb8cb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 11 Jan 2025 21:25:52 +0100 Subject: [PATCH] python312Packages.amaranth: disable failing tests --- .../python-modules/amaranth/default.nix | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/amaranth/default.nix b/pkgs/development/python-modules/amaranth/default.nix index c4effc294787..096505a690d3 100644 --- a/pkgs/development/python-modules/amaranth/default.nix +++ b/pkgs/development/python-modules/amaranth/default.nix @@ -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"; }; }