1{ lib 2, buildPythonPackage 3, fetchPypi 4, six 5, snowflake-connector-python 6, sqlalchemy 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "snowflake-sqlalchemy"; 12 version = "1.5.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-PtD3fQnIqd79NcYFdDMlpNwhCY6PHGL/wDR/QnKdsFo="; 20 }; 21 22 propagatedBuildInputs = [ 23 six 24 snowflake-connector-python 25 sqlalchemy 26 ]; 27 28 # Pypi does not include tests 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "snowflake.sqlalchemy" 33 ]; 34 35 meta = with lib; { 36 changelog = "https://github.com/snowflakedb/snowflake-sqlalchemy/blob/v${version}/DESCRIPTION.md"; 37 description = "Snowflake SQLAlchemy Dialect"; 38 homepage = "https://github.com/snowflakedb/snowflake-sqlalchemy"; 39 license = licenses.asl20; 40 maintainers = [ ]; 41 42 # https://github.com/snowflakedb/snowflake-sqlalchemy/issues/380 43 broken = versionAtLeast sqlalchemy.version "2"; 44 }; 45}