mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
python3.pkgs.snowflake-connector-python: relax cryptography dep, with hook
(cherry picked from commit 36822a4885)
This commit is contained in:
committed by
Robert Scott
parent
90677a4464
commit
d5d46d42f2
@@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, asn1crypto
|
||||
, buildPythonPackage
|
||||
, pythonRelaxDepsHook
|
||||
, certifi
|
||||
, cffi
|
||||
, charset-normalizer
|
||||
@@ -30,11 +31,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
|
||||
|
||||
Reference in New Issue
Block a user