1{ lib 2, buildPythonPackage 3, fetchPypi 4}: 5 6buildPythonPackage rec { 7 pname = "cocotb-bus"; 8 version = "0.2.0"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "3afe3abe73464269247263e44f39d59c1258f227298be4118377a8e8c09d7dc1"; 13 }; 14 15 postPatch = '' 16 # remove circular dependency cocotb from setup.py 17 substituteInPlace setup.py --replace '"cocotb>=1.5.0.dev,<2.0"' "" 18 ''; 19 20 # tests require cocotb, disable for now to avoid circular dependency 21 doCheck = false; 22 23 # checkPhase = '' 24 # export PATH=$out/bin:$PATH 25 # make test 26 # ''; 27 28 meta = with lib; { 29 description = "Pre-packaged testbenching tools and reusable bus interfaces for cocotb"; 30 homepage = "https://github.com/cocotb/cocotb-bus"; 31 license = licenses.bsd3; 32 maintainers = with maintainers; [ prusnak ]; 33 }; 34}