python3Packages.snowflake-connector-python: 2.4.1 -> 2.4.3
This commit is contained in:
parent
2789f04fbe
commit
28b5164fca
|
@ -1,5 +1,6 @@
|
||||||
{ buildPythonPackage
|
{ lib
|
||||||
, isPy27
|
, buildPythonPackage
|
||||||
|
, pythonOlder
|
||||||
, asn1crypto
|
, asn1crypto
|
||||||
, azure-storage-blob
|
, azure-storage-blob
|
||||||
, boto3
|
, boto3
|
||||||
|
@ -10,7 +11,6 @@
|
||||||
, idna
|
, idna
|
||||||
, ijson
|
, ijson
|
||||||
, isPy3k
|
, isPy3k
|
||||||
, lib
|
|
||||||
, oscrypto
|
, oscrypto
|
||||||
, pyarrow
|
, pyarrow
|
||||||
, pyasn1-modules
|
, pyasn1-modules
|
||||||
|
@ -25,20 +25,14 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "snowflake-connector-python";
|
pname = "snowflake-connector-python";
|
||||||
version = "2.4.1";
|
version = "2.4.3";
|
||||||
disabled = isPy27;
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "5c9180e61202a7beb1df83231688423091ca0a04ee559d2a78ff77f9c727baae";
|
sha256 = "sha256-+jAfUwaofWM5Ef1kk4AEAbBM/UES8/ZzLd4QJfkEQsM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "'pyOpenSSL>=16.2.0,<20.0.0'," "'pyOpenSSL'," \
|
|
||||||
--replace 'pytz<2021.0' 'pytz'
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
azure-storage-blob
|
azure-storage-blob
|
||||||
asn1crypto
|
asn1crypto
|
||||||
|
@ -55,16 +49,26 @@ buildPythonPackage rec {
|
||||||
pytz
|
pytz
|
||||||
requests
|
requests
|
||||||
six
|
six
|
||||||
] ++ lib.optionals (!isPy3k) [
|
|
||||||
pyarrow
|
pyarrow
|
||||||
pyasn1-modules
|
pyasn1-modules
|
||||||
urllib3
|
urllib3
|
||||||
];
|
];
|
||||||
|
|
||||||
# tests require encrypted secrets, see
|
postPatch = ''
|
||||||
|
# https://github.com/snowflakedb/snowflake-connector-python/issues/705
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "idna>=2.5,<3" "idna" \
|
||||||
|
--replace "chardet>=3.0.2,<4" "chardet"
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Tests require encrypted secrets, see
|
||||||
# https://github.com/snowflakedb/snowflake-connector-python/tree/master/.github/workflows/parameters
|
# https://github.com/snowflakedb/snowflake-connector-python/tree/master/.github/workflows/parameters
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
pythonImportsCheck = [ "snowflake" "snowflake.connector" ];
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"snowflake"
|
||||||
|
"snowflake.connector"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Snowflake Connector for Python";
|
description = "Snowflake Connector for Python";
|
||||||
|
|
Loading…
Reference in a new issue