about summary refs log tree commit diff
path: root/pkgs/development/python-modules/django/1_11.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/django/1_11.nix')
-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/;
+  };
+}