python311Packages.django: Fix MIME UTF-8 surrogate escaping

Closes: #304339
This commit is contained in:
Martin Weinelt 2024-04-16 09:39:12 +02:00
parent a34a6c51cd
commit df533183f7
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
1 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,7 @@
, stdenv
, buildPythonPackage
, fetchPypi
, fetchpatch2
, pythonAtLeast
, pythonOlder
, substituteAll
@ -63,6 +64,13 @@ buildPythonPackage rec {
# and disable failing tests
./django_4_tests.patch
(fetchpatch2 {
# https://github.com/django/django/pull/17979
name = "django-mime-utf8-surrogates.patch";
url = "https://github.com/django/django/commit/0d3ddcaf2c74638a32781f361d467af572ced95f.patch";
hash = "sha256-AoIFvehBsXIrzIlCsqOZ++RqtDFl/H+zXqA25OMQr7g=";
})
] ++ lib.optionals withGdal [
(substituteAll {
src = ./django_4_set_geos_gdal_lib.patch;