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";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "1.4.5";
|
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;
|
2022-12-17 10:02:37 +00:00
|
|
|
hash = "sha256-clUDElZ17xxbrJ+O0oplzVAxL1afWDwdk/g5ZofEhOs=";
|
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 = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|