anchor.diff:  , fetchFromGitHub
   , buildPythonPackage
   , rustPlatform
  -, pythonImportsCheckHook
   , pkg-config
   , openssl
   , publicsuffix-list
  
positive.code: , libiconv
  , CoreFoundation
  , Security
  }:
  
  buildPythonPackage rec {
    pname = "adblock";
    version = "0.4.0";
    disabled = isPy27;
  
    # Pypi only has binary releases
  
negative.code: 
    PSL_PATH = "${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat";
  
    checkInputs = [ pytestCheckHook toml ];
  
    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";
  