21 buildPythonPackage rec {
25 disabled = pythonOlder "3.8";
27 src = fetchFromGitHub {
28 owner = "amaranth-lang";
30 rev = "refs/tags/v${version}";
31 hash = "sha256-lPQw7fAVM7URdyC/9c/UIYsRxVXrLjvHODvhYBdlkkg=";
35 substituteInPlace pyproject.toml \
37 "pdm-backend~=2.3.0" \
41 nativeBuildInputs = [ git ];
42 build-system = [ pdm-backend ];
50 ++ lib.optional (pythonOlder "3.9") importlib-resources
51 ++ lib.optional (pythonOlder "3.8") importlib-metadata;
60 pythonImportsCheck = [ "amaranth" ];
63 description = "Modern hardware definition language and toolchain based on Python";
64 mainProgram = "amaranth-rpc";
65 homepage = "https://amaranth-lang.org/docs/amaranth";
66 license = licenses.bsd2;
67 maintainers = with maintainers; [