python311Packages.django: Fix MIME UTF-8 surrogate escaping
Closes: #304339
This commit is contained in:
parent
a34a6c51cd
commit
df533183f7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue