python310Packages.djangorestframework: fix 'collectstatic' with django 4.1

This commit is contained in:
Bruno BELANYI 2022-09-16 17:50:57 +02:00
parent 334ca79a7b
commit 284e89493f

View File

@ -1,6 +1,7 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, coreapi
, django
, django-guardian
@ -24,6 +25,15 @@ buildPythonPackage rec {
sha256 = "sha256-XmX6DZBZYzVCe72GERplAWt5jIjV/cYercZGb0pYjoc=";
};
patches = [
# See https://github.com/encode/django-rest-framework/issues/8608
# and https://github.com/encode/django-rest-framework/pull/8591/
(fetchpatch {
name = "fix-django-collect-static.patch";
url = "https://github.com/encode/django-rest-framework/pull/8591/commits/65943bb58deba6ee1a89fe4504f270ab1806fce6.patch";
sha256 = "sha256-wI7EzX9tlyyXAPrJEr+/2uTg7dVY98IKgh7Cc/NZo5k=";
})
];
propagatedBuildInputs = [
django