2022-09-29 09:06:35 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2019-07-16 18:29:12 -07:00
|
|
|
, fetchPypi
|
2022-06-06 15:13:27 +02:00
|
|
|
, six
|
2019-07-16 18:29:12 -07:00
|
|
|
, snowflake-connector-python
|
2022-06-06 15:13:27 +02:00
|
|
|
, sqlalchemy
|
2022-09-29 09:06:35 +02:00
|
|
|
, pythonOlder
|
2019-07-16 18:29:12 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "snowflake-sqlalchemy";
|
2022-12-16 04:44:46 +00:00
|
|
|
version = "1.4.5";
|
2022-09-29 09:06:35 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2019-07-16 18:29:12 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-12-16 04:44:46 +00:00
|
|
|
hash = "sha256-clUDElZ17xxbrJ+O0oplzVAxL1afWDwdk/g5ZofEhOs=";
|
2019-07-16 18:29:12 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-06-06 15:13:27 +02:00
|
|
|
six
|
2019-07-16 18:29:12 -07:00
|
|
|
snowflake-connector-python
|
2022-06-06 15:13:27 +02:00
|
|
|
sqlalchemy
|
2019-07-16 18:29:12 -07:00
|
|
|
];
|
|
|
|
|
2020-11-27 10:42:40 +01:00
|
|
|
# Pypi does not include tests
|
|
|
|
doCheck = false;
|
2022-09-29 09:06:35 +02:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"snowflake.sqlalchemy"
|
|
|
|
];
|
2020-09-26 15:36:13 +01:00
|
|
|
|
2019-07-16 18:29:12 -07:00
|
|
|
meta = with lib; {
|
2022-11-27 20:32:37 -08:00
|
|
|
changelog = "https://github.com/snowflakedb/snowflake-sqlalchemy/blob/v${version}/DESCRIPTION.md";
|
2019-07-16 18:29:12 -07:00
|
|
|
description = "Snowflake SQLAlchemy Dialect";
|
2022-09-29 09:06:35 +02:00
|
|
|
homepage = "https://github.com/snowflakedb/snowflake-sqlalchemy";
|
2019-07-16 18:29:12 -07:00
|
|
|
license = licenses.asl20;
|
2021-03-08 21:37:24 +01:00
|
|
|
maintainers = [ ];
|
2019-07-16 18:29:12 -07:00
|
|
|
};
|
|
|
|
}
|