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:
Doron Behar 2023-08-06 17:37:02 +00:00 committed by GitHub
commit 66f50b2ff7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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