anchor.diff:    ] ++ lib.optional stdenv.isLinux pyinotify
       ++ lib.optional stdenv.isDarwin macfsevents;
   
  -  # hangs on darwin
  -  doCheck = !stdenv.isDarwin;
  +  checkInputs = [
  +    configclass
  +    doit-py
  +    mergedict
  +    mock
  +    pyflakes
  +    pytestCheckHook
  +  ];
   
  -  checkInputs = [ mock pytestCheckHook ];
  +  # escape infinite recursion with doit-py
  +  doCheck = false;
   
  -  disabledTests = [
  -    # depends on doit-py, which has a circular dependency on doit
  -    "test___main__.py"
  -  ];
  +  passthru.tests = {
  +    # hangs on darwin
  +    check = doit.overridePythonAttrs (_: { doCheck = !stdenv.isDarwin; });
  +  };
  +
  +  pythonImportsCheck = [ "doit" ];
   
     meta = with lib; {
       homepage = "https://pydoit.org/";
  
positive.code:     '';
      maintainers = with maintainers; [ pSub ];
    };
  }
  
negative.code: , pyinotify
  , macfsevents
  , toml
  , doit-py
  , pyflakes
  , configclass
  , mergedict
  }:
  
  let doit = buildPythonPackage rec {
    pname = "doit";
    version = "0.36.0";
  
  