mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
python3.pkgs.snowflake-connector-python: relax cryptography dep, with hook
This commit is contained in:
parent
7155c4c826
commit
36822a4885
@ -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 New Issue
Block a user