19 buildPythonPackage rec {
23 disabled = pythonOlder "3.8";
25 src = fetchFromGitHub {
26 owner = "amaranth-lang";
28 rev = "refs/tags/v${version}";
29 hash = "sha256-g9dn6gUTdFHz9GMWHERsRLWHoI3E7vjuQDK0usbZO7g=";
37 propagatedBuildInputs = [
41 lib.optional (pythonOlder "3.9") importlib-resources ++
42 lib.optional (pythonOlder "3.8") importlib-metadata;
51 pythonImportsCheck = [ "amaranth" ];
54 description = "A modern hardware definition language and toolchain based on Python";
55 mainProgram = "amaranth-rpc";
56 homepage = "https://amaranth-lang.org/docs/amaranth";
57 license = licenses.bsd2;
58 maintainers = with maintainers; [ emily thoughtpolice pbsds ];