anchor.diff:  
     PSL_PATH = "${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat";
   
  -  # There are no rust tests
  -  doCheck = false;
  +  checkInputs = [ pytestCheckHook toml ];
   
  -  pythonImportsCheck = [ "adblock" ];
  +  preCheck = ''
  +    # import from $out instead
  +    rm -r adblock
  +  '';
  +
  +  disabledTestPaths = [
  +    # relies on directory removed above
  +    "tests/test_typestubs.py"
  +  ];
  +
  +  pythonImportsCheck = [ "adblock" "adblock.adblock" ];
   
     meta = with lib; {
       description = "Python wrapper for Brave's adblocking library, which is written in Rust";
  
positive.code: , libiconv
  , CoreFoundation
  , Security
  }:
  
  buildPythonPackage rec {
    pname = "adblock";
    version = "0.4.0";
    disabled = isPy27;
  
    # Pypi only has binary releases
  
negative.code: , fetchFromGitHub
  , buildPythonPackage
  , rustPlatform
  , pkg-config
  , openssl
  , publicsuffix-list
  