at 23.05-pre 1.5 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, coreutils 5, jinja2 6, pandas 7, pytestCheckHook 8, which 9, verilog 10, yosys 11}: 12 13buildPythonPackage rec { 14 pname = "edalize"; 15 version = "0.4.0"; 16 17 src = fetchFromGitHub { 18 owner = "olofk"; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "sha256-fpUNCxW7+uymodJ/yGME9VNcCEZdBROIdT1+blpgkzA="; 22 }; 23 24 postPatch = '' 25 substituteInPlace tests/test_edam.py \ 26 --replace /usr/bin/touch ${coreutils}/bin/touch 27 patchShebangs tests/mock_commands/vsim 28 ''; 29 30 propagatedBuildInputs = [ jinja2 ]; 31 32 checkInputs = [ 33 pytestCheckHook 34 pandas 35 which 36 yosys 37 verilog 38 ]; 39 40 pythonImportsCheck = [ "edalize" ]; 41 42 disabledTestPaths = [ 43 "tests/test_apicula.py" 44 "tests/test_ascentlint.py" 45 "tests/test_diamond.py" 46 "tests/test_gatemate.py" 47 "tests/test_ghdl.py" 48 "tests/test_icarus.py" 49 "tests/test_icestorm.py" 50 "tests/test_ise.py" 51 "tests/test_mistral.py" 52 "tests/test_openlane.py" 53 "tests/test_oxide.py" 54 "tests/test_quartus.py" 55 "tests/test_radiant.py" 56 "tests/test_spyglass.py" 57 "tests/test_symbiyosys.py" 58 "tests/test_trellis.py" 59 "tests/test_vcs.py" 60 "tests/test_veribleformat.py" 61 "tests/test_veriblelint.py" 62 "tests/test_vivado.py" 63 "tests/test_xcelium.py" 64 "tests/test_xsim.py" 65 ]; 66 67 meta = with lib; { 68 description = "Abstraction library for interfacing EDA tools"; 69 homepage = "https://github.com/olofk/edalize"; 70 license = licenses.bsd2; 71 maintainers = [ maintainers.astro ]; 72 }; 73}