Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
pythonPackages.snowflake-connector-python: 2.2.10 -> 2.3.2, fix build
Browse files Browse the repository at this point in the history
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
  • Loading branch information
risicle authored and Jon committed Sep 26, 2020
1 parent 99175cf commit 96f0346
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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";
Expand Down

0 comments on commit 96f0346

Please sign in to comment.