Merge pull request #301749 from r-ryantm/auto-update/python312Packages.snowflake-connector-python

python312Packages.snowflake-connector-python: 3.7.1 -> 3.8.0
This commit is contained in:
Fabian Affolter 2024-04-06 17:38:59 +02:00 committed by GitHub
commit 73c8e07495
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,70 +1,55 @@
{ lib {
, asn1crypto lib,
, buildPythonPackage asn1crypto,
, pythonRelaxDepsHook buildPythonPackage,
, certifi certifi,
, cffi cffi,
, charset-normalizer charset-normalizer,
, fetchPypi cython,
, filelock fetchPypi,
, idna filelock,
, keyring idna,
, oscrypto keyring,
, packaging oscrypto,
, platformdirs packaging,
, pycryptodomex pandas,
, pyjwt platformdirs,
, pyopenssl pyarrow,
, pythonOlder pycryptodomex,
, pytz pyjwt,
, requests pyopenssl,
, setuptools pythonOlder,
, sortedcontainers pythonRelaxDepsHook,
, tomlkit pytz,
, typing-extensions requests,
, wheel setuptools,
sortedcontainers,
tomlkit,
typing-extensions,
wheel,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "snowflake-connector-python"; pname = "snowflake-connector-python";
version = "3.7.1"; version = "3.8.0";
format = "pyproject"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-3GmC9lOGDt7xYUowR6FrywfiJ3Xm4JCAi79PdinEGR0="; hash = "sha256-tbXoXQK0NIofLWxn30gpqjOHlnsBM9K3+jHRkNBgnDE=";
}; };
# snowflake-connector-python requires arrow 10.0.1, which we don't have in build-system = [
# nixpkgs, so we cannot build the C extensions that use it. thus, patch out cython
# cython and pyarrow from the build dependencies
#
# keep an eye on following issue for improvements to this situation:
#
# https://github.com/snowflakedb/snowflake-connector-python/issues/1144
#
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"cython",' "" \
--replace '"pyarrow>=10.0.1,<10.1.0",' ""
'';
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools setuptools
wheel wheel
]; ];
pythonRelaxDeps = [ nativeBuildInputs = [ pythonRelaxDepsHook ];
"pyOpenSSL"
"charset-normalizer"
"cryptography"
"platformdirs"
];
propagatedBuildInputs = [ dependencies = [
asn1crypto asn1crypto
certifi certifi
cffi cffi
@ -85,6 +70,10 @@ buildPythonPackage rec {
]; ];
passthru.optional-dependencies = { passthru.optional-dependencies = {
pandas = [
pandas
pyarrow
];
secure-local-storage = [ keyring ]; secure-local-storage = [ keyring ];
}; };
@ -98,9 +87,9 @@ buildPythonPackage rec {
]; ];
meta = with lib; { meta = with lib; {
changelog = "https://github.com/snowflakedb/snowflake-connector-python/blob/v${version}/DESCRIPTION.md";
description = "Snowflake Connector for Python"; description = "Snowflake Connector for Python";
homepage = "https://github.com/snowflakedb/snowflake-connector-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; license = licenses.asl20;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ ];
}; };