19 buildPythonPackage rec {
22 # python -m setuptools_scm
23 version = "0.4.dev197+g${lib.substring 0 7 src.rev}";
24 disabled = pythonOlder "3.8";
26 src = fetchFromGitHub {
27 owner = "amaranth-lang";
29 rev = "11d5bb19eb34463918c07dc5e2e0eac7dbf822b0";
30 sha256 = "sha256-Ji5oYfF2hKSunAdAQTniv8Ajj6NE/bvW5cvadrGKa+U=";
38 propagatedBuildInputs = [
42 lib.optional (pythonOlder "3.9") importlib-resources ++
43 lib.optional (pythonOlder "3.8") importlib-metadata;
52 pythonImportsCheck = [ "amaranth" ];
55 description = "A modern hardware definition language and toolchain based on Python";
56 homepage = "https://amaranth-lang.org/docs/amaranth";
57 license = licenses.bsd2;
58 maintainers = with maintainers; [ emily thoughtpolice ];