about summary refs log tree commit diff
path: root/pkgs/development/python-modules/django-compat
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2020-01-28 12:27:28 +0100
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2020-02-09 09:17:31 +0100
commit2711c7477db765cabb0cad506bfb1b6f3b1e0fc2 (patch)
tree757a6b12680599e54abb2dce56a3dd25fad0a7f1 /pkgs/development/python-modules/django-compat
parent17a0ec03cc0c6d9f654ec1d61c0ec13543866271 (diff)
pythonPackages.django: django_1_11 -> django_lts
Diffstat (limited to 'pkgs/development/python-modules/django-compat')
-rw-r--r--pkgs/development/python-modules/django-compat/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/django-compat/default.nix b/pkgs/development/python-modules/django-compat/default.nix
index 32d85cfadd712..de180ca03e558 100644
--- a/pkgs/development/python-modules/django-compat/default.nix
+++ b/pkgs/development/python-modules/django-compat/default.nix
@@ -1,6 +1,9 @@
 { stdenv, buildPythonPackage, fetchFromGitHub, python,
   django, six
 }:
+if stdenv.lib.versionAtLeast django.version "2.0"
+then throw "django-compat requires django < 2.0"
+else
 buildPythonPackage rec {
   pname = "django-compat";
   version = "1.0.15";