@@ -4825,7 +4825,7 @@ in {
48254825 url = "mirror://pypi/p/${pname}/${name}.tar.gz";
48264826 sha256 = "1mycn5cc9cp4fb0i2vzgkkk6d0glnkbilggwb4i99i09vr0vg5cd";
48274827 };
4828− buildInputs = with self; [ pyramid_mako nose django_1_9 jinja2 tornado pyramid Mako ];
4828+ buildInputs = with self; [ pyramid_mako nose django jinja2 tornado pyramid Mako ];
48294829 propagatedBuildInputs = with self; [ six ];
48304830 patchPhase = ''
48314831 sed -i 's/1.4.99/1.99/' setup.py
@@ -9820,34 +9820,13 @@ in {
98209820 gdal = self.gdal;
98219821 };
98229822
9823+ # TODO: Django 1.10 will be maintained until the end of the year. Therefore,
9824+ # it will be dropped before 17.09.
9825+ # https://github.com/NixOS/nixpkgs/issues/25375#issuecomment-298522597
98239826 django_1_10 = callPackage ../development/python-modules/django/1_10.nix {
98249827 gdal = self.gdal;
98259828 };
98269829
9827− django_1_9 = buildPythonPackage rec {
9828− name = "Django-${version}";
9829− version = "1.9.13";
9830− disabled = pythonOlder "2.7";
9831−
9832− src = pkgs.fetchurl {
9833− url = "http://www.djangoproject.com/m/releases/1.9/${name}.tar.gz";
9834− sha256 = "079zspfsvfnv9wf6qvg8xmz1m23d0723p2nqyk8gfqb012jxn1y0";
9835− };
9836−
9837− # patch only $out/bin to avoid problems with starter templates (see #3134)
9838− postFixup = ''
9839− wrapPythonProgramsIn $out/bin "$out $pythonPath"
9840− '';
9841−
9842− # too complicated to setup
9843− doCheck = false;
9844−
9845− meta = {
9846− description = "A high-level Python Web framework";
9847− homepage = https://www.djangoproject.com/;
9848− };
9849− };
9850−
98519830 django_1_8 = buildPythonPackage rec {
98529831 name = "Django-${version}";
98539832 version = "1.8.18";
@@ -9872,32 +9851,6 @@ in {
98729851 };
98739852 };
98749853
9875− django_1_6 = buildPythonPackage rec {
9876− name = "Django-${version}";
9877− version = "1.6.11.5";
9878−
9879− # Support to python-3.4 and higher was introduced in django_1_7
9880− disabled = !(isPy26 || isPy27 || isPy33);
9881−
9882− src = pkgs.fetchurl {
9883− url = "https://downloads.reviewboard.org/releases/Django/1.6/Django-${version}.tar.gz";
9884− sha256 = "0yj0fw3iql031z8l5ik1fb25sk3l5bw2vc63bbyg5rz2k3znl4il";
9885− };
9886−
9887− # too complicated to setup
9888− doCheck = false;
9889−
9890− # patch only $out/bin to avoid problems with starter templates (see #3134)
9891− postFixup = ''
9892− wrapPythonProgramsIn $out/bin "$out $pythonPath"
9893− '';
9894−
9895− meta = {
9896− description = "A high-level Python Web framework";
9897− homepage = https://www.djangoproject.com/;
9898− };
9899− };
9900−
99019854 django_appconf = buildPythonPackage rec {
99029855 name = "django-appconf-${version}";
99039856 version = "1.0.1";
@@ -9995,7 +9948,7 @@ in {
99959948 sha256 = "1qbcx54hq8iy3n2n6cki3bka1m9rp39np4hqddrm9knc954fb7nv";
99969949 };
99979950
9998− propagatedBuildInputs = with self; [ django_1_6 ];
9951+ propagatedBuildInputs = with self; [ django ];
99999952
100009953 meta = {
100019954 description = "A database schema evolution tool for the Django web framework";
@@ -10033,7 +9986,7 @@ in {
100339986 url = "mirror://pypi/d/django-tagging/${name}.tar.gz";
100349987 sha256 = "03zlbq13rydfh28wh0jk3x3cjk9x6jjmqnx1i3ngjmfwbxf8x6j1";
100359988 };
10036− propagatedBuildInputs = with self; [ django_1_6 ];
9989+ propagatedBuildInputs = with self; [ django ];
100379990 });
100389991
100399992 django_classytags = buildPythonPackage rec {
@@ -10235,7 +10188,7 @@ in {
1023510188 sha256 = "1y49fa8jj7x9qjj5wzhns3zxwj0s73sggvkrv660cqw5qb7d8hha";
1023610189 };
1023710190
10238− propagatedBuildInputs = with self; [ django_1_6 futures ];
10191+ propagatedBuildInputs = with self; [ django futures ];
1023910192
1024010193 meta = with stdenv.lib; {
1024110194 description = "Pipeline is an asset packaging library for Django";
@@ -10253,7 +10206,10 @@ in {
1025310206 });
1025410207
1025510208
10256− djblets = buildPythonPackage rec {
10209+ djblets = if (versionOlder self.django.version "1.6.11") ||
10210+ (versionAtLeast self.django.version "1.9")
10211+ then throw "djblets only suported for Django<1.8.999,>=1.6.11"
10212+ else buildPythonPackage rec {
1025710213 name = "Djblets-0.9";
1025810214
1025910215 src = pkgs.fetchurl {
@@ -10262,7 +10218,7 @@ in {
1026210218 };
1026310219
1026410220 propagatedBuildInputs = with self; [
10265− django_1_6 feedparser django_pipeline_1_3 pillowfight pytz ];
10221+ django feedparser django_pipeline_1_3 pillowfight pytz ];
1026610222
1026710223 meta = {
1026810224 description = "A collection of useful extensions for Django";
@@ -13484,7 +13440,10 @@ in {
1348413440 };
1348513441 };
1348613442
13487− mathics = buildPythonPackage rec {
13443+ mathics = if (versionOlder self.django.version "1.8") ||
13444+ (versionAtLeast self.django.version "1.9")
13445+ then throw "mathics only supports django-1.8.x"
13446+ else buildPythonPackage rec {
1348813447 name = "mathics-${version}";
1348913448 version = "0.9";
1349013449 src = pkgs.fetchFromGitHub {
@@ -13510,7 +13469,7 @@ in {
1351013469 propagatedBuildInputs = with self; [
1351113470 cython
1351213471 sympy
13513− django_1_8
13472+ django
1351413473 ply
1351513474 mpmath
1351613475 dateutil
@@ -13648,7 +13607,7 @@ in {
1364813607
1364913608 buildInputs = with self; [ pyflakes pep8 ];
1365013609 propagatedBuildInputs = with self; [
13651− django_1_6 filebrowser_safe grappelli_safe bleach tzlocal beautifulsoup4
13610+ django filebrowser_safe grappelli_safe bleach tzlocal beautifulsoup4
1365213611 requests requests_oauthlib future pillow
1365313612 ];
1365413613
@@ -21282,7 +21241,7 @@ in {
2128221241
2128321242 buildInputs = with self; [ coverage mock nose geopy ];
2128421243 propagatedBuildInputs = with self; [
21285− django_1_6 dateutil_1_5 whoosh pysolr elasticsearch
21244+ django dateutil_1_5 whoosh pysolr elasticsearch
2128621245 ];
2128721246
2128821247 patchPhase = ''
@@ -21367,7 +21326,7 @@ in {
2136721326 '';
2136821327
2136921328 propagatedBuildInputs = with self;
21370− [ django_1_6 recaptcha_client pytz memcached dateutil_1_5 paramiko flup
21329+ [ django recaptcha_client pytz memcached dateutil_1_5 paramiko flup
2137121330 pygments djblets django_evolution pycrypto pysvn pillow
2137221331 psycopg2 django-haystack python_mimeparse markdown django-multiselectfield
2137321332 ];
@@ -27173,7 +27132,7 @@ EOF
2717327132 sha256 = "1c0kclbv8shv9nvjx19wqm4asia58s3qmd9fapchc6y9fjpjax6q";
2717427133 };
2717527134
27176− propagatedBuildInputs = with self; [ django_1_6 django_tagging_0_3 whisper pycairo ldap memcached pytz ];
27135+ propagatedBuildInputs = with self; [ django django_tagging_0_3 whisper pycairo ldap memcached pytz ];
2717727136
2717827137 postInstall = ''
2717927138 wrapProgram $out/bin/run-graphite-devel-server.py \
@@ -28557,7 +28516,7 @@ EOF
2855728516 disabled = isPyPy;
2855828517 # Wants to set up Django
2855928518 doCheck = false;
28560− propagatedBuildInputs = with self; [ django_1_9 smartypants jinja2 ];
28519+ propagatedBuildInputs = with self; [ django smartypants jinja2 ];
2856128520 meta = {
2856228521 description = "Filters to enhance web typography, including support for Django & Jinja templates";
2856328522 homepage = "https://github.com/mintchaos/typogrify";