anchor.diff: -{ lib, buildPythonPackage, fetchFromGitHub, setuptools, swig, verilog }:
  +{ lib, stdenv, buildPythonPackage, fetchFromGitHub, setuptools, swig, verilog }:
   
   buildPythonPackage rec {
     pname = "cocotb";
  
positive.code:     do
        substituteInPlace $f --replace 'shell which' 'shell command -v'
      done
  
      # This can perhaps be removed in the next update after 1.3.2?
      substituteInPlace cocotb/share/makefiles/Makefile.inc --replace "-Werror" ""
    '';
  
    checkInputs = [ swig verilog ];
  
negative.code:     homepage = "https://github.com/cocotb/cocotb";
      license = licenses.bsd3;
      maintainers = with maintainers; [ matthuszagh ];
      broken = stdenv.isDarwin;
    };
  }
  