python311Packages.django_5: Fix MIME UTF-8 surrogate escaping

This commit is contained in:
Martin Weinelt 2024-04-16 10:09:39 +02:00
parent df533183f7
commit 1d61161d18
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
@ -64,6 +65,13 @@ buildPythonPackage rec {
# disable test that excpects timezone issues
./django_5_disable_failing_tests.patch
(fetchpatch2 {
# https://github.com/django/django/pull/17979
name = "django-mime-utf8-surrogates.patch";
url = "https://github.com/django/django/commit/b231bcd19e57267ce1fc21d42d46f0b65fdcfcf8.patch";
hash = "sha256-HhmRwi24VkoPoh+NygAThCoMywoMwrLijU4ZsDfVU34=";
})
] ++ lib.optionals withGdal [
(substituteAll {
src = ./django_5_set_geos_gdal_lib.patch;