anchor.diff:      setuptools
       six
     ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata importlib-resources ];
  +
  +  checkInputs = [
  +    mock
  +    pydot
  +    pytestCheckHook
  +  ];
  +
  +  preCheck = ''
  +    export PATH=$out/bin:$PATH
  +  '';
  +
  +  disabledTests = [
  +    # requires git directory
  +    "test_update_docs"
  +  ];
   
     pythonImportsCheck = [
       "cfnlint"
  
positive.code: , requests
  , setuptools
  , six
  # Test inputs
  , pytestCheckHook
  , mock
  , pydot
  }:
  
  buildPythonPackage rec {
    pname = "cfn-lint";
    version = "0.35.1";
  
    src = fetchFromGitHub {
      owner = "aws-cloudformation";
      repo  = "cfn-python-lint";
      rev = "v${version}";
      sha256 = "1ajb0412hw9fg9m4b3xbpfbp8cixmnpjxrkaks6k749xinzsv7qk";
    };
  
    postPatch = ''
      substituteInPlace setup.py --replace 'importlib_resources~=1.4;python_version<"3.7" and python_version!="3.4"' 'importlib_resources;python_version<"3.7"'
    '';
  
    propagatedBuildInputs = [
  
negative.code:     "cfnlint.transform"
    ];
  
    meta = with lib; {
      description = "Checks cloudformation for practices and behaviour that could potentially be improved";
      homepage = "https://github.com/aws-cloudformation/cfn-python-lint";
  