mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
Merge pull request #166354 from mweinelt/21.11/twisted
[21.11] python3Packages.twisted: fix CVE-2022-21712
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{ lib, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, python
|
||||
, zope_interface
|
||||
, incremental
|
||||
@@ -25,6 +26,15 @@ buildPythonPackage rec {
|
||||
sha256 = "01lh225d7lfnmfx4f4kxwl3963gjc9yg8jfkn1w769v34ia55mic";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# https://github.com/twisted/twisted/security/advisories/GHSA-92x2-jw7w-xvvx
|
||||
name = "CVE-2022-21712.patch";
|
||||
url = "https://github.com/twisted/twisted/commit/af8fe78542a6f2bf2235ccee8158d9c88d31e8e2.patch";
|
||||
sha256 = "sha256-4destHY7smyXEvk4Z022wItHvTmaTFibrp9ztd4ZaX4=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ zope_interface incremental automat constantly hyperlink pyhamcrest attrs setuptools typing-extensions ];
|
||||
|
||||
passthru.extras.tls = [ pyopenssl service-identity idna ];
|
||||
|
||||
Reference in New Issue
Block a user