3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/snowflake-connector-python/default.nix
Robert Scott 96f034655f 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
2020-09-26 12:22:40 -07:00

76 lines
1.3 KiB
Nix

{ buildPythonPackage
, isPy27
, asn1crypto
, azure-storage-blob
, boto3
, certifi
, cffi
, fetchPypi
, future
, idna
, ijson
, isPy3k
, lib
, oscrypto
, pyarrow
, pyasn1-modules
, pycryptodomex
, pyjwt
, pyopenssl
, pytz
, requests
, six
, urllib3
}:
buildPythonPackage rec {
pname = "snowflake-connector-python";
version = "2.3.2";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "0as7m736wgx684wssnvhvixjkqidnhxn9i98rcdgagr67s3akfdy";
};
propagatedBuildInputs = [
azure-storage-blob
asn1crypto
boto3
certifi
cffi
future
idna
ijson
oscrypto
pycryptodomex
pyjwt
pyopenssl
pytz
requests
six
] ++ lib.optionals (!isPy3k) [
pyarrow
pyasn1-modules
urllib3
];
postPatch = ''
substituteInPlace setup.py \
--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";
homepage = "https://www.snowflake.com/";
license = licenses.asl20;
};
}