Merge pull request #247463 from doronbehar/pkg/snowflake-connector-python
python3.pkgs.snowflake-connector-python: relax cryptography dep, with hook
This commit is contained in:
commit
66f50b2ff7
1 changed files with 9 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, asn1crypto
|
||||
, buildPythonPackage
|
||||
, pythonRelaxDepsHook
|
||||
, certifi
|
||||
, cffi
|
||||
, charset-normalizer
|
||||
|
@ -31,11 +32,14 @@ buildPythonPackage rec {
|
|||
hash = "sha256-F0EbgRSS/kYKUDPhf6euM0eLqIqVjQsHC6C9ZZSRCIE=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "charset_normalizer>=2,<3" "charset_normalizer" \
|
||||
--replace "pyOpenSSL>=16.2.0,<23.0.0" "pyOpenSSL"
|
||||
'';
|
||||
nativeBuildInputs = [
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
pythonRelaxDeps = [
|
||||
"pyOpenSSL"
|
||||
"charset-normalizer"
|
||||
"cryptography"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
asn1crypto
|
||||
|
|
Loading…
Reference in a new issue