mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
72 lines
1.2 KiB
Nix
72 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, 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";
|
|
version = "2.6.2";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "ce131b1dd059a4d081e78595d618654bf9b9fc184d78352f24512375467257d1";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
azure-storage-blob
|
|
asn1crypto
|
|
boto3
|
|
certifi
|
|
cffi
|
|
future
|
|
idna
|
|
ijson
|
|
oscrypto
|
|
pycryptodomex
|
|
pyjwt
|
|
pyopenssl
|
|
pytz
|
|
requests
|
|
six
|
|
pyarrow
|
|
pyasn1-modules
|
|
urllib3
|
|
];
|
|
|
|
# Tests require encrypted secrets, see
|
|
# https://github.com/snowflakedb/snowflake-connector-python/tree/master/.github/workflows/parameters
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"snowflake"
|
|
"snowflake.connector"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Snowflake Connector for Python";
|
|
homepage = "https://www.snowflake.com/";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|