pythonPackages.snowflake-connector-python: 2.2.10 -> 2.3.2, fix build

the relaxed version constraints don't seem to be specific avoidance of
buggy versions, just upstream cautiously prohibiting untested versions

if there *are* specific reasons, they're hidden away in upstream's jira
This commit is contained in:
Robert Scott 2020-09-26 15:35:46 +01:00 committed by Jon
parent 99175cfbf6
commit 96f034655f

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";