depot/third_party/nixpkgs/pkgs/development/python-modules/snowflake-sqlalchemy/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

45 lines
987 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, six
, snowflake-connector-python
, sqlalchemy
, pythonOlder
}:
buildPythonPackage rec {
pname = "snowflake-sqlalchemy";
version = "1.5.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-TxODQC/8iTEZdL2BDe4iADrvSvDzEqD9tVd4MzrRq/c=";
};
propagatedBuildInputs = [
six
snowflake-connector-python
sqlalchemy
];
# Pypi does not include tests
doCheck = false;
pythonImportsCheck = [
"snowflake.sqlalchemy"
];
meta = with lib; {
changelog = "https://github.com/snowflakedb/snowflake-sqlalchemy/blob/v${version}/DESCRIPTION.md";
description = "Snowflake SQLAlchemy Dialect";
homepage = "https://github.com/snowflakedb/snowflake-sqlalchemy";
license = licenses.asl20;
maintainers = [ ];
# https://github.com/snowflakedb/snowflake-sqlalchemy/issues/380
broken = versionAtLeast sqlalchemy.version "2";
};
}