28 buildPythonPackage rec {
29 pname = "snowflake-connector-python";
33 disabled = pythonOlder "3.7";
36 inherit pname version;
37 hash = "sha256-u2ZyK9ZKvNdqarBqZCPWdLy3Kfm6ORBWl375Lzg6rbg=";
40 # snowflake-connector-python requires arrow 10.0.1, which we don't have in
41 # nixpkgs, so we cannot build the C extensions that use it. thus, patch out
42 # cython and pyarrow from the build dependencies
44 # keep an eye on following issue for improvements to this situation:
46 # https://github.com/snowflakedb/snowflake-connector-python/issues/1144
49 substituteInPlace pyproject.toml \
50 --replace '"cython",' "" \
51 --replace '"pyarrow>=10.0.1,<10.1.0",' ""
67 propagatedBuildInputs = [
87 passthru.optional-dependencies = {
88 secure-local-storage = [ keyring ];
91 # Tests require encrypted secrets, see
92 # https://github.com/snowflakedb/snowflake-connector-python/tree/master/.github/workflows/parameters
95 pythonImportsCheck = [
101 changelog = "https://github.com/snowflakedb/snowflake-connector-python/blob/v${version}/DESCRIPTION.md";
102 description = "Snowflake Connector for Python";
103 homepage = "https://github.com/snowflakedb/snowflake-connector-python";
104 license = licenses.asl20;
105 maintainers = with maintainers; [ ];