python310Packages.urllib3: add optional-dependencies secure back
This commit is contained in:
parent
0c17a445aa
commit
7927333d48
1 changed files with 7 additions and 4 deletions
|
@ -2,14 +2,18 @@
|
||||||
, brotli
|
, brotli
|
||||||
, brotlicffi
|
, brotlicffi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, python-dateutil
|
, certifi
|
||||||
|
, cryptography
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, idna
|
||||||
, isPyPy
|
, isPyPy
|
||||||
, mock
|
, mock
|
||||||
|
, pyopenssl
|
||||||
, pysocks
|
, pysocks
|
||||||
, pytest-freezegun
|
, pytest-freezegun
|
||||||
, pytest-timeout
|
, pytest-timeout
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, python-dateutil
|
||||||
, tornado
|
, tornado
|
||||||
, trustme
|
, trustme
|
||||||
}:
|
}:
|
||||||
|
@ -61,9 +65,8 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
passthru.optional-dependencies = {
|
passthru.optional-dependencies = {
|
||||||
brotli = if isPyPy then [ brotlicffi ] else [ brotli ];
|
brotli = if isPyPy then [ brotlicffi ] else [ brotli ];
|
||||||
# we are removing secure dependencies as they are no longer relevant with py3:
|
# Use carefully since pyopenssl is not supported aarch64-darwin
|
||||||
# https://urllib3.readthedocs.io/en/stable/reference/contrib/pyopenssl.html
|
secure = [ certifi cryptography idna pyopenssl ];
|
||||||
# secure = [ certifi cryptography idna pyopenssl ];
|
|
||||||
socks = [ pysocks ];
|
socks = [ pysocks ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue