python3Packages.mezzaine: prevent throw from breaking nix eval
This commit is contained in:
parent
6730bc5144
commit
6c35347144
@ -1,4 +1,5 @@
|
|||||||
{ stdenv
|
{ lib
|
||||||
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, isPyPy
|
, isPyPy
|
||||||
@ -18,9 +19,6 @@
|
|||||||
, chardet
|
, 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 {
|
buildPythonPackage rec {
|
||||||
version = "4.3.1";
|
version = "4.3.1";
|
||||||
pname = "Mezzanine";
|
pname = "Mezzanine";
|
||||||
@ -30,7 +28,8 @@ buildPythonPackage rec {
|
|||||||
sha256 = "42c7909953cc5aea91921b47d804b61e14893bf48a2a476ce49a96559a0fa1d3";
|
sha256 = "42c7909953cc5aea91921b47d804b61e14893bf48a2a476ce49a96559a0fa1d3";
|
||||||
};
|
};
|
||||||
|
|
||||||
disabled = isPyPy;
|
disabled = isPyPy || stdenv.lib.versionOlder django.version "1.11"
|
||||||
|
|| stdenv.lib.versionAtLeast django.version "2.0";
|
||||||
|
|
||||||
buildInputs = [ pyflakes pep8 ];
|
buildInputs = [ pyflakes pep8 ];
|
||||||
propagatedBuildInputs = [ django django_contrib_comments filebrowser_safe grappelli_safe bleach tzlocal beautifulsoup4 requests requests_oauthlib future pillow chardet ];
|
propagatedBuildInputs = [ django django_contrib_comments filebrowser_safe grappelli_safe bleach tzlocal beautifulsoup4 requests requests_oauthlib future pillow chardet ];
|
||||||
@ -44,7 +43,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
LC_ALL="en_US.UTF-8";
|
LC_ALL="en_US.UTF-8";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = ''
|
description = ''
|
||||||
A content management platform built using the Django framework
|
A content management platform built using the Django framework
|
||||||
'';
|
'';
|
||||||
@ -63,11 +62,13 @@ buildPythonPackage rec {
|
|||||||
Mezzanine provides most of its functionality by default. This
|
Mezzanine provides most of its functionality by default. This
|
||||||
approach yields a more integrated and efficient platform.
|
approach yields a more integrated and efficient platform.
|
||||||
'';
|
'';
|
||||||
homepage = http://mezzanine.jupo.org/;
|
homepage = "http://mezzanine.jupo.org/";
|
||||||
downloadPage = https://github.com/stephenmcd/mezzanine/releases;
|
downloadPage = "https://github.com/stephenmcd/mezzanine/releases";
|
||||||
license = licenses.free;
|
license = licenses.free;
|
||||||
maintainers = with maintainers; [ prikhi ];
|
maintainers = with maintainers; [ prikhi ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
|
# mezzanine requires django-1.11. Consider overriding python package set to use django_1_11"
|
||||||
|
broken = versionOlder django.version "1.11" || versionAtLeast django.version "2.0";
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user