Merge pull request #248072 from tjni/snowflake-connector-python

python3.pkgs.snowflake-connector-python: fix build dependencies
This commit is contained in:
OTABI Tomoya 2023-08-10 10:33:19 +09:00 committed by GitHub
commit 35c1178016
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,7 @@
, requests
, setuptools
, typing-extensions
, wheel
}:
buildPythonPackage rec {
@ -32,9 +33,26 @@ buildPythonPackage rec {
hash = "sha256-F0EbgRSS/kYKUDPhf6euM0eLqIqVjQsHC6C9ZZSRCIE=";
};
# snowflake-connector-python requires arrow 10.0.1, which we don't have in
# nixpkgs, so we cannot build the C extensions that use it. thus, patch out
# 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
wheel
];
pythonRelaxDeps = [
"pyOpenSSL"
"charset-normalizer"