anchor.diff:      pytz
       requests
       six
  -  ] ++ lib.optionals (!isPy3k) [
       pyarrow
       pyasn1-modules
       urllib3
     ];
   
  -  # tests require encrypted secrets, see
  +  postPatch = ''
  +    # https://github.com/snowflakedb/snowflake-connector-python/issues/705
  +    substituteInPlace setup.py \
  +      --replace "idna>=2.5,<3" "idna" \
  +      --replace "chardet>=3.0.2,<4" "chardet"
  +  '';
  +
  +  # Tests require encrypted secrets, see
     # https://github.com/snowflakedb/snowflake-connector-python/tree/master/.github/workflows/parameters
     doCheck = false;
  -  pythonImportsCheck = [ "snowflake" "snowflake.connector" ];
  +
  +  pythonImportsCheck = [
  +    "snowflake"
  +    "snowflake.connector"
  +  ];
   
     meta = with lib; {
       description = "Snowflake Connector for Python";
  
positive.code: , idna
  , ijson
  , isPy3k
  , lib
  , oscrypto
  , pyarrow
  , pyasn1-modules
  
negative.code: { lib
  , buildPythonPackage
  , pythonOlder
  , asn1crypto
  , azure-storage-blob
  , boto3
  