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