python3Packages.httpx: unset SSL_CERT_FILE in hook

This fixes downstream test failures.
This commit is contained in:
FliegendeWurst
2025-04-02 09:08:28 +02:00
parent 0e553a831e
commit 42cd6e85f7
2 changed files with 9 additions and 0 deletions
@@ -108,6 +108,10 @@ buildPythonPackage rec {
__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";
@@ -0,0 +1,5 @@
httpxSslCertFileUnset() {
unset SSL_CERT_FILE
}
postHooks+=(httpxSslCertFileUnset)