pythonPackages.django_appconf: backport support for django-2.2

This commit is contained in:
Lancelot SIX 2020-01-28 15:02:19 +01:00 committed by Frederik Rietdijk
parent 2711c7477d
commit 5cecdbf834

View File

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, six, django }:
{ stdenv, buildPythonPackage, fetchFromGitHub, six, django, fetchpatch }:
buildPythonPackage rec {
pname = "django-appconf";
version = "1.0.3";
@ -12,6 +12,14 @@ buildPythonPackage rec {
propagatedBuildInputs = [ six django ];
patches = [
(fetchpatch {
name = "backport_django_2_2.patch";
url = "https://github.com/django-compressor/django-appconf/commit/1526a842ee084b791aa66c931b3822091a442853.patch";
sha256 = "1vl2s6vlf15089s8p4c3g4d5iqm8jva66bdw683r8440f80ixgmw";
})
];
checkPhase = ''
# prove we're running tests against installed package, not build dir
rm -r appconf