Merge pull request #98897 from risicle/ris-snowflake-conn-2.3.2-r20.09

[20.09] pythonPackages.snowflake-connector-python: 2.2.10 -> 2.3.2, fix build
This commit is contained in:
Robert Scott
2020-09-27 14:33:00 +01:00
committed by GitHub
2 changed files with 8 additions and 3 deletions

View File

@@ -25,12 +25,12 @@
buildPythonPackage rec {
pname = "snowflake-connector-python";
version = "2.2.10";
version = "2.3.2";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "0beba8eb9c1dec2782d52491d058256e1f5d9e010114a80ff3b8e3905be655fd";
sha256 = "0as7m736wgx684wssnvhvixjkqidnhxn9i98rcdgagr67s3akfdy";
};
propagatedBuildInputs = [
@@ -57,12 +57,15 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace "'cffi>=1.9,<1.14'," "'cffi~=1.9',"
--replace "'cryptography>=2.5.0,<3.0.0'," "'cryptography'," \
--replace "'idna<2.10'," "'idna'," \
--replace "'requests<2.24.0'," "'requests',"
'';
# tests are not working
# XXX: fix the tests
doCheck = false;
pythonImportsCheck = [ "snowflake" "snowflake.connector" ];
meta = with lib; {
description = "Snowflake Connector for Python";

View File

@@ -19,6 +19,8 @@ buildPythonPackage rec {
snowflake-connector-python
];
pythonImportsCheck = [ "snowflake.sqlalchemy" ];
meta = with lib; {
description = "Snowflake SQLAlchemy Dialect";
homepage = "https://www.snowflake.net/";