Repository navigation
python3Packages.stripe: use cacert bundle instead of vendored CA file - #577579
Merged
Merged
Conversation
Assisted-by: Claude Code (Claude Fable 5.1) Assisted-by: Claude Code (Claude Opus 5.5)
This was referenced Oct 23, 2026
LeSuisse
approved these changes
Oct 23, 2026
LeSuisse
left a comment
Member
There was a problem hiding this comment.
Looks OK, merging.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 577579
Commit: d5057d1c98cec94c78f568f628238af4d6630108
x86_64-linux
✅ 4 packages built:
- python314Packages.stripe
- python313Packages.stripe
- gigalixir
- pretix
Contributor
|
Successfully created backport PR for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #576541.
stripe-python has a bundled CA file,
stripe/data/ca-certificates.crt. All HTTP clients of stripe-python use this file for API requests. They do not usecertifiorSSL_CERT_FILE. This change replaces the installed file with a symlink to theca-bundle.crtfile ofcacertinpostFixup. Thus, the installed file is a symlink tocacert, andreplaceDependenciescan replacecacert. The wheel in thedistoutput keeps the bundled file (#576542).Warning
AI Disclosure: Claude Code made the code change, the commit message and the first version of this pull request description. Claude Code used Claude Fable 5.1 and Claude Opus 5.5. I examined all of this work. Claude Code also wrote all of nix-cacert-harness. This pull request description is written in ASD-STE100 (Simplified Technical English), examined with memelint in
strictmode.Test
nix-cacert-harness examines the package before and after this change. A local copy of nixpkgs is not necessary.
Harness output: python3Packages.stripe
In the second part of the output, the harness adds a temporary test root to
cacertand builds the package again. Then a small Python test setsstripe.api_baseto the URL of a localopenssl s_serverand sends one API request,stripe.Balance.retrieve(). The certificate of this server chains to the test root. This server sends HTML, not data from the Stripe API. Thus, after the TLS connection, stripe-python stops with anAPIError. The test counts this result as a connection. A certificate error gives anAPIConnectionError. Before this change,cacerthas no effect on the result. After this change, it has an effect.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.