anchor.diff:    ];
   
     checkInputs = [ cocotb-bus pytestCheckHook swig verilog ];
  +  preCheck = ''
  +    export PATH=$out/bin:$PATH
  +    mv cocotb cocotb.hidden
  +  '';
   
  -  checkPhase = ''
  -    export PATH=$out/bin:$PATH
  -  '';
  +  pythonImportsCheck = [ "cocotb" ];
   
     meta = with lib; {
       description = "Coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python";
  
positive.code:   pname = "cocotb";
    version = "1.7.1";
  
    # - we need to use the tarball from PyPi
    #   or the full git checkout (with .git)
    # - using fetchFromGitHub will cause a build failure,
    #   because it does not include required metadata
    src = fetchPypi {
      inherit pname version;
      sha256 = "sha256-HzkLtkaNcOBKzr65/wW1S+Qsu7u7O9bHXR7Ao2y5fiM=";
    };
  
    nativeBuildInputs = [ setuptools-scm ];
  
negative.code: { lib
  , stdenv
  , buildPythonPackage
  , fetchFromGitHub
  , setuptools
  , setuptools-scm
  , cocotb-bus
  