2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
six,
|
|
|
|
snowflake-connector-python,
|
|
|
|
sqlalchemy,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "snowflake-sqlalchemy";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.5.3";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-eRkew/6/syvP/s1m8qfdVhvVcTRepLzL9BzB+1wGgv8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-06-26 10:26:21 +00:00
|
|
|
six
|
2020-04-24 23:36:52 +00:00
|
|
|
snowflake-connector-python
|
2022-06-26 10:26:21 +00:00
|
|
|
sqlalchemy
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
# Pypi does not include tests
|
|
|
|
doCheck = false;
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "snowflake.sqlalchemy" ];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/snowflakedb/snowflake-sqlalchemy/blob/v${version}/DESCRIPTION.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Snowflake SQLAlchemy Dialect";
|
2022-09-30 11:47:45 +00:00
|
|
|
homepage = "https://github.com/snowflakedb/snowflake-sqlalchemy";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2021-03-12 07:09:13 +00:00
|
|
|
maintainers = [ ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
# https://github.com/snowflakedb/snowflake-sqlalchemy/issues/380
|
|
|
|
broken = versionAtLeast sqlalchemy.version "2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|