python311Packages.djangorestframework: add patch for CVE-2024-21520

This commit is contained in:
Robert Scott 2024-08-21 21:29:42 +01:00
parent d092841022
commit 545b7eff65

View File

@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
coreapi,
django,
django-guardian,
@ -26,6 +27,14 @@ buildPythonPackage rec {
hash = "sha256-Fnj0n3NS3SetOlwSmGkLE979vNJnYE6i6xwVBslpNz4=";
};
patches = [
(fetchpatch {
name = "CVE-2024-21520.patch";
url = "https://github.com/encode/django-rest-framework/commit/3b41f0124194430da957b119712978fa2266b642.patch";
hash = "sha256-1NoRlV+sqHezDo28x38GD6DpcQuUF1q3YQXEb3SUvKQ=";
})
];
propagatedBuildInputs = [
django
pytz