31 buildPythonPackage rec {
32 pname = "snowflake-connector-python";
36 disabled = pythonOlder "3.8";
38 src = fetchFromGitHub {
39 owner = "snowflakedb";
40 repo = "snowflake-connector-python";
41 rev = "refs/tags/v${version}";
42 hash = "sha256-A6QnKCROd1vJpFCTrLEoHVo43xojdjpgYS3qQm64gcY=";
69 optional-dependencies = {
74 secure-local-storage = [ keyring ];
78 export HOME=$(mktemp -d)
87 # Tests require encrypted secrets, see
88 # https://github.com/snowflakedb/snowflake-connector-python/tree/master/.github/workflows/parameters
89 "test/extras/simple_select1.py"
91 # error getting schema from stream, error code: 0, error info: Expected to
92 # be able to read 19504 bytes for message body but got 19503
93 "test/unit/test_connection.py"
94 "test/unit/test_cursor.py"
95 "test/unit/test_error_arrow_stream.py"
96 "test/unit/test_ocsp.py"
97 "test/unit/test_retry_network.py"
98 "test/unit/test_s3_util.py"
102 # Tests connect to the internet
103 "test_status_when_num_of_chunks_is_zero"
104 "test_test_socket_get_cert"
107 pythonImportsCheck = [
109 "snowflake.connector"
113 description = "Snowflake Connector for Python";
114 homepage = "https://github.com/snowflakedb/snowflake-connector-python";
115 changelog = "https://github.com/snowflakedb/snowflake-connector-python/blob/v${version}/DESCRIPTION.md";
116 license = licenses.asl20;