python3Packages.django_compat: fix tests and re-enable

This commit is contained in:
Lancelot SIX
2020-03-06 15:41:49 +01:00
committed by Jon
parent 4babdd0bac
commit 75087d8882
2 changed files with 65 additions and 2 deletions

View File

@@ -5,8 +5,6 @@
buildPythonPackage rec {
pname = "django-compat";
version = "1.0.15";
# django-compat requires django < 2.0
disabled = stdenv.lib.versionAtLeast django.version "2.0";
# the pypi packages don't include everything required for the tests
src = fetchFromGitHub {
@@ -16,6 +14,10 @@ buildPythonPackage rec {
sha256 = "1pr6v38ahrsvxlgmcx69s4b5q5082f44gzi4h3c32sccdc4pwqxp";
};
patches = [
./fix-tests.diff
];
checkPhase = ''
runHook preCheck