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