summary refs log tree commit diff
path: root/pkgs/development/python-modules/django
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2017-04-07 17:06:00 +0200
committerLancelot SIX <lsix@lancelotsix.com>2017-04-28 21:55:45 +0200
commite1a82bd39e567cecf7212a72687bc8c05a0d9ccd (patch)
tree3a964668f554f5a0ae638b4ae37bfee312eeaca4 /pkgs/development/python-modules/django
parent72966154b3771e6c530596e450bcf4cbf9f2a702 (diff)
downloadnixlib-e1a82bd39e567cecf7212a72687bc8c05a0d9ccd.tar
nixlib-e1a82bd39e567cecf7212a72687bc8c05a0d9ccd.tar.gz
nixlib-e1a82bd39e567cecf7212a72687bc8c05a0d9ccd.tar.bz2
nixlib-e1a82bd39e567cecf7212a72687bc8c05a0d9ccd.tar.lz
nixlib-e1a82bd39e567cecf7212a72687bc8c05a0d9ccd.tar.xz
nixlib-e1a82bd39e567cecf7212a72687bc8c05a0d9ccd.tar.zst
nixlib-e1a82bd39e567cecf7212a72687bc8c05a0d9ccd.zip
pythonPackages.django_1_11: init at 1.11
This it the LTS release and will receive security updates for 3 years.

See https://docs.djangoproject.com/en/1.11/releases/1.11/
Diffstat (limited to 'pkgs/development/python-modules/django')
-rw-r--r--pkgs/development/python-modules/django/1_11.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/django/1_11.nix b/pkgs/development/python-modules/django/1_11.nix
new file mode 100644
index 000000000000..3f7806bb34b2
--- /dev/null
+++ b/pkgs/development/python-modules/django/1_11.nix
@@ -0,0 +1,37 @@
+{ stdenv, buildPythonPackage, fetchurl, substituteAll,
+  pythonOlder,
+  geos, gdal, pytz
+}:
+buildPythonPackage rec {
+  name = "Django-${version}";
+  version = "1.11";
+  disabled = pythonOlder "2.7";
+
+  src = fetchurl {
+    url = "http://www.djangoproject.com/m/releases/1.11/${name}.tar.gz";
+    sha256 = "0c1c2n05wv1br651hfbvnxw8ymcn4q8m56893pyv8xj2jijbiwxn";
+  };
+
+  patches = [
+    (substituteAll {
+      src = ./1.10-gis-libs.template.patch;
+      geos = geos;
+      gdal = gdal;
+    })
+  ];
+
+  # patch only $out/bin to avoid problems with starter templates (see #3134)
+  postFixup = ''
+    wrapPythonProgramsIn $out/bin "$out $pythonPath"
+  '';
+
+  propagatedBuildInputs = [ pytz ];
+
+  # too complicated to setup
+  doCheck = false;
+
+  meta = {
+    description = "A high-level Python Web framework";
+    homepage = https://www.djangoproject.com/;
+  };
+}