depot/third_party/nixpkgs/pkgs/development/python-modules/snowflake-connector-python/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

96 lines
1.7 KiB
Nix

{
lib,
asn1crypto,
buildPythonPackage,
certifi,
cffi,
charset-normalizer,
cython,
fetchPypi,
filelock,
idna,
keyring,
oscrypto,
packaging,
pandas,
platformdirs,
pyarrow,
pycryptodomex,
pyjwt,
pyopenssl,
pythonOlder,
pythonRelaxDepsHook,
pytz,
requests,
setuptools,
sortedcontainers,
tomlkit,
typing-extensions,
wheel,
}:
buildPythonPackage rec {
pname = "snowflake-connector-python";
version = "3.8.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-m8zhoNniEs7s9F7c6gLRjiBalfiMwEcK2kqLrLVCR9U=";
};
build-system = [
cython
setuptools
wheel
];
nativeBuildInputs = [ pythonRelaxDepsHook ];
dependencies = [
asn1crypto
certifi
cffi
charset-normalizer
filelock
idna
oscrypto
packaging
platformdirs
pycryptodomex
pyjwt
pyopenssl
pytz
requests
sortedcontainers
tomlkit
typing-extensions
];
passthru.optional-dependencies = {
pandas = [
pandas
pyarrow
];
secure-local-storage = [ keyring ];
};
# 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://github.com/snowflakedb/snowflake-connector-python";
changelog = "https://github.com/snowflakedb/snowflake-connector-python/blob/v${version}/DESCRIPTION.md";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}