[staging-next] python3Packages.twisted: add patch for removed pyopenssl apis (#536501)

This commit is contained in:
Martin Weinelt 2026-06-29 01:24:48 +00:00 committed by GitHub
commit bec09294b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,7 @@
pythonAtLeast,
pythonOlder,
fetchFromGitHub,
fetchpatch,
python,
# build-system
@ -65,6 +66,19 @@ buildPythonPackage rec {
hash = "sha256-D6vDa+8qwjryKnElPBZgXCNokMX2l3i2bMdtk4FhEp4=";
};
patches = [
# pyOpenSSL 26.3.0 dropped some deprecated APIs, which breaks various
# functionality in twisted. We include the patch which replaces these
# with equivalent functionality from pyca/cryptography.
# https://github.com/twisted/twisted/issues/12660
# https://github.com/twisted/twisted/pull/12661
(fetchpatch {
name = "twisted-replace-pyopenssl-x509req-with-cryptography-csr.patch";
url = "https://github.com/twisted/twisted/commit/5b4601c9965ffc92d6aa952b8c05127d5ac37307.patch";
hash = "sha256-mbSZOvzinfUolfOHJl+vEdAEGjy8OF2S/SrTsAbvjIw=";
})
];
__darwinAllowLocalNetworking = true;
build-system = [