python3.pkgs.snowflake-connector-python: relax cryptography dep, with hook

This commit is contained in:
Doron Behar 2023-08-06 09:43:59 +03:00
parent 7155c4c826
commit 36822a4885

View File

@ -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