mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
[staging-next] python3Packages.twisted: add patch for removed pyopenssl apis (#536501)
This commit is contained in:
commit
bec09294b1
1 changed files with 14 additions and 0 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue