diff --git a/pkgs/development/python-modules/selenium/default.nix b/pkgs/development/python-modules/selenium/default.nix index bafff76be5793..a1db98deeb755 100644 --- a/pkgs/development/python-modules/selenium/default.nix +++ b/pkgs/development/python-modules/selenium/default.nix @@ -35,7 +35,8 @@ buildPythonPackage rec { trio trio-websocket urllib3 - ] ++ urllib3.optional-dependencies.socks; + ] ++ urllib3.optional-dependencies.secure + ++ urllib3.optional-dependencies.socks; checkInputs = [ pytestCheckHook diff --git a/pkgs/development/python-modules/urllib3/default.nix b/pkgs/development/python-modules/urllib3/default.nix index dbcf05c9c52a0..790b497bb8f03 100644 --- a/pkgs/development/python-modules/urllib3/default.nix +++ b/pkgs/development/python-modules/urllib3/default.nix @@ -2,14 +2,18 @@ , brotli , brotlicffi , buildPythonPackage -, python-dateutil +, certifi +, cryptography , fetchPypi +, idna , isPyPy , mock +, pyopenssl , pysocks , pytest-freezegun , pytest-timeout , pytestCheckHook +, python-dateutil , tornado , trustme }: @@ -61,9 +65,8 @@ buildPythonPackage rec { passthru.optional-dependencies = { brotli = if isPyPy then [ brotlicffi ] else [ brotli ]; - # we are removing secure dependencies as they are no longer relevant with py3: - # https://urllib3.readthedocs.io/en/stable/reference/contrib/pyopenssl.html - # secure = [ certifi cryptography idna pyopenssl ]; + # Use carefully since pyopenssl is not supported aarch64-darwin + secure = [ certifi cryptography idna pyopenssl ]; socks = [ pysocks ]; };