2021-05-07 23:45:55 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
2019-07-17 03:14:38 +02:00
|
|
|
, asn1crypto
|
|
|
|
, azure-storage-blob
|
|
|
|
, boto3
|
|
|
|
, certifi
|
|
|
|
, cffi
|
|
|
|
, fetchPypi
|
|
|
|
, future
|
|
|
|
, idna
|
|
|
|
, ijson
|
|
|
|
, oscrypto
|
|
|
|
, pyarrow
|
|
|
|
, pyasn1-modules
|
|
|
|
, pycryptodomex
|
|
|
|
, pyjwt
|
|
|
|
, pyopenssl
|
|
|
|
, pytz
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, urllib3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "snowflake-connector-python";
|
2021-09-24 01:46:43 +02:00
|
|
|
version = "2.6.1";
|
2021-05-07 23:45:55 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
2019-07-17 03:14:38 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-24 01:46:43 +02:00
|
|
|
sha256 = "dbe6f7d84debd27b117e17fdb280be27695cf6ae54009c49495584d1b7776d1b";
|
2019-07-17 03:14:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
azure-storage-blob
|
|
|
|
asn1crypto
|
|
|
|
boto3
|
|
|
|
certifi
|
|
|
|
cffi
|
|
|
|
future
|
|
|
|
idna
|
|
|
|
ijson
|
|
|
|
oscrypto
|
|
|
|
pycryptodomex
|
|
|
|
pyjwt
|
|
|
|
pyopenssl
|
|
|
|
pytz
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
pyarrow
|
|
|
|
pyasn1-modules
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
2021-05-07 23:45:55 +02:00
|
|
|
# Tests require encrypted secrets, see
|
2020-10-17 03:20:58 +02:00
|
|
|
# https://github.com/snowflakedb/snowflake-connector-python/tree/master/.github/workflows/parameters
|
2019-07-17 03:14:38 +02:00
|
|
|
doCheck = false;
|
2021-05-07 23:45:55 +02:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"snowflake"
|
|
|
|
"snowflake.connector"
|
|
|
|
];
|
2019-07-17 03:14:38 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Snowflake Connector for Python";
|
|
|
|
homepage = "https://www.snowflake.com/";
|
|
|
|
license = licenses.asl20;
|
2021-08-26 14:16:20 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-07-17 03:14:38 +02:00
|
|
|
};
|
|
|
|
}
|