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

View File

@ -2,6 +2,7 @@
, stdenv , stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, fetchpatch2
, pythonAtLeast , pythonAtLeast
, pythonOlder , pythonOlder
, substituteAll , substituteAll
@ -63,6 +64,13 @@ buildPythonPackage rec {
# and disable failing tests # and disable failing tests
./django_4_tests.patch ./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 [ ] ++ lib.optionals withGdal [
(substituteAll { (substituteAll {
src = ./django_4_set_geos_gdal_lib.patch; src = ./django_4_set_geos_gdal_lib.patch;