pythonPackages.django: django_1_11 -> django_lts

This commit is contained in:
Lancelot SIX 2020-01-28 12:27:28 +01:00 committed by Frederik Rietdijk
parent 17a0ec03cc
commit 2711c7477d
6 changed files with 19 additions and 2 deletions

View File

@ -6,6 +6,7 @@
, pytest_xdist
, pytest-django
, mock
, django
}:
buildPythonPackage rec {
@ -27,6 +28,8 @@ buildPythonPackage rec {
mock
];
disabled = lib.versionAtLeast django.version "2.0";
checkPhase = ''
pytest
'';

View File

@ -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";

View File

@ -18,6 +18,9 @@
, chardet
}:
if stdenv.lib.versionOlder django.version "1.11" || stdenv.lib.versionAtLeast django.version "2.0"
then throw "mezzanine requires django-1.11. Consider overriding python package set to use django_1_11"
else
buildPythonPackage rec {
version = "4.3.1";
pname = "Mezzanine";

View File

@ -1,7 +1,11 @@
{ buildPythonPackage, lib, fetchgit, isPy3k
, git, makeWrapper, sassc, hyperkitty, postorius, whoosh
, django
}:
if lib.versionOlder "2.2" django.version
then throw "mailman-web requires django < 2.2"
else
buildPythonPackage rec {
pname = "mailman-web-unstable";
version = "2019-09-29";

View File

@ -15309,7 +15309,11 @@ in
mailman-rss = callPackage ../development/python-modules/mailman-rss { };
mailman-web = with python3.pkgs; toPythonApplication mailman-web;
mailman-web = with (python3.override {
packageOverrides = self: super: {
django = self.django_1_11;
};
}).pkgs; toPythonApplication mailman-web;
mattermost = callPackage ../servers/mattermost { };
matterircd = callPackage ../servers/mattermost/matterircd.nix { };

View File

@ -3214,7 +3214,7 @@ in {
crayons = callPackage ../development/python-modules/crayons{ };
django = self.django_1_11;
django = self.django_lts;
django_lts = self.django_2_2;