mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #248072 from tjni/snowflake-connector-python
python3.pkgs.snowflake-connector-python: fix build dependencies
This commit is contained in:
commit
35c1178016
1 changed files with 18 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue