python310Packages.snowflake-connector-python: update disable

- update substituteInPlace
- update inputs
This commit is contained in:
Fabian Affolter 2022-05-27 15:34:35 +02:00 committed by GitHub
parent 01e74c5aca
commit 89d3b0a21a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,63 +1,51 @@
{ lib
, buildPythonPackage
, pythonOlder
, asn1crypto
, azure-storage-blob
, boto3
, buildPythonPackage
, certifi
, cffi
, charset-normalizer
, fetchPypi
, future
, idna
, ijson
, oscrypto
, pyarrow
, pyasn1-modules
, pycryptodomex
, pyjwt
, pyopenssl
, pythonOlder
, pytz
, requests
, six
, urllib3
}:
buildPythonPackage rec {
pname = "snowflake-connector-python";
version = "2.7.8";
disabled = pythonOlder "3.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-nPsHsEi8sf5kbQP3SAzLaod+nEUGcwLpC8/3/XL2vC8=";
hash = "sha256-nPsHsEi8sf5kbQP3SAzLaod+nEUGcwLpC8/3/XL2vC8=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "pyOpenSSL>=16.2.0,<22.0.0" "pyOpenSSL"
'';
propagatedBuildInputs = [
azure-storage-blob
asn1crypto
boto3
certifi
cffi
future
charset-normalizer
idna
ijson
oscrypto
pycryptodomex
pyjwt
pyopenssl
pytz
requests
six
pyarrow
pyasn1-modules
urllib3
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "pyOpenSSL>=16.2.0,<23.0.0" "pyOpenSSL"
'';
# Tests require encrypted secrets, see
# https://github.com/snowflakedb/snowflake-connector-python/tree/master/.github/workflows/parameters
doCheck = false;
@ -69,7 +57,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Snowflake Connector for Python";
homepage = "https://www.snowflake.com/";
homepage = "https://github.com/snowflakedb/snowflake-connector-python";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};