python312Packages.django_5: 5.0.4 -> 5.0.5

https://docs.djangoproject.com/en/5.0/releases/5.0.5/
This commit is contained in:
Martin Weinelt 2024-05-06 23:06:44 +02:00
parent 72a42d2732
commit efd232d7b6
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,7 +1,7 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, fetchpatch2
, pythonAtLeast
, pythonOlder
@ -44,15 +44,16 @@
buildPythonPackage rec {
pname = "django";
version = "5.0.4";
version = "5.0.5";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchPypi {
pname = "Django";
inherit version;
hash = "sha256-S9AajIMLt3qKOw59iyW4h+U2rReoG6Lc5UdhNcczEr0=";
src = fetchFromGitHub {
owner = "django";
repo = "django";
rev = "refs/tags/${version}";
hash = "sha256-0/AbPmTl38E9BpHVKs0r79fISjEa1d4XO/se1pA7zxg=";
};
patches = [
@ -65,13 +66,6 @@ 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;