python3Packages.httpx: unset SSL_CERT_FILE in hook

This fixes downstream test failures.

Changed files
+9
pkgs
development
python-modules
+4
pkgs/development/python-modules/httpx/default.nix
···
__darwinAllowLocalNetworking = true;
+
# stdenv's fake SSL_CERT_FILE breaks default http transport constructor with:
+
# FileNotFoundError: [Errno 2] No such file or directory
+
setupHook = ./setup-hook.sh;
+
meta = with lib; {
changelog = "https://github.com/encode/httpx/blob/${src.rev}/CHANGELOG.md";
description = "Next generation HTTP client";
+5
pkgs/development/python-modules/httpx/setup-hook.sh
···
+
httpxSslCertFileUnset() {
+
unset SSL_CERT_FILE
+
}
+
+
postHooks+=(httpxSslCertFileUnset)