2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
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
|
2022-09-30 11:47:45 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "snowflake-sqlalchemy";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "1.4.6";
|
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;
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-xkx8QlabOCodqj4tRYxpln0z+HHVwYdqlXkaitzmKx8=";
|
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
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|