python3Packages.django_{4,5}: backport patch fixing builds on bcachefs

K900 b8c6b4d8 dc553e12

+16
+8
pkgs/development/python-modules/django/4.nix
··· 3 3 stdenv, 4 4 buildPythonPackage, 5 5 fetchFromGitHub, 6 + fetchpatch, 6 7 pythonAtLeast, 7 8 pythonOlder, 8 9 substituteAll, ··· 65 66 # make sure the tests don't remove packages from our pythonpath 66 67 # and disable failing tests 67 68 ./django_4_tests.patch 69 + 70 + # fix filename length limit tests on bcachefs 71 + # FIXME: remove if ever backported 72 + (fetchpatch { 73 + url = "https://github.com/django/django/commit/12f4f95405c7857cbf2f4bf4d0261154aac31676.patch"; 74 + hash = "sha256-+K20/V8sh036Ox9U7CSPgfxue7f28Sdhr3MsB7erVOk="; 75 + }) 68 76 ] 69 77 ++ lib.optionals withGdal [ 70 78 (substituteAll {
+8
pkgs/development/python-modules/django/5.nix
··· 3 3 stdenv, 4 4 buildPythonPackage, 5 5 fetchFromGitHub, 6 + fetchpatch, 6 7 pythonOlder, 7 8 substituteAll, 8 9 ··· 65 66 ./django_5_tests_pythonpath.patch 66 67 # disable test that excpects timezone issues 67 68 ./django_5_disable_failing_tests.patch 69 + 70 + # fix filename length limit tests on bcachefs 71 + # FIXME: remove in 5.2 72 + (fetchpatch { 73 + url = "https://github.com/django/django/commit/12f4f95405c7857cbf2f4bf4d0261154aac31676.patch"; 74 + hash = "sha256-+K20/V8sh036Ox9U7CSPgfxue7f28Sdhr3MsB7erVOk="; 75 + }) 68 76 ] 69 77 ++ lib.optionals withGdal [ 70 78 (substituteAll {