anchor.diff:  { lib
   , stdenv
   , buildPythonPackage
  -, fetchPypi
  +, fetchFromGitHub
   , setuptools
   , setuptools-scm
   , cocotb-bus
  
positive.code:   ];
  
    checkInputs = [ cocotb-bus pytestCheckHook swig verilog ];
  
    checkPhase = ''
      export PATH=$out/bin:$PATH
    '';
  
    meta = with lib; {
      description = "Coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python";
  
negative.code:   pname = "cocotb";
    version = "1.7.1";
  
    # pypi source doesn't include tests
    src = fetchFromGitHub {
      owner = "cocotb";
      repo = "cocotb";
      rev = "v${version}";
      sha256 = "sha256-wACgT5r0YmSYvLhTsuFhTcJqeCtGGLifOmr7/Lz2Vug=";
    };
  
    nativeBuildInputs = [ setuptools-scm ];
  