1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

python3Packages.mezzaine: prevent throw from breaking nix eval

This commit is contained in:
Jonathan Ringer 2020-02-12 21:15:31 -08:00 committed by Jon
parent 6730bc5144
commit 6c35347144

View file

@ -1,4 +1,5 @@
{ stdenv
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, isPyPy
@ -18,9 +19,6 @@
, 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";
@ -30,7 +28,8 @@ buildPythonPackage rec {
sha256 = "42c7909953cc5aea91921b47d804b61e14893bf48a2a476ce49a96559a0fa1d3";
};
disabled = isPyPy;
disabled = isPyPy || stdenv.lib.versionOlder django.version "1.11"
|| stdenv.lib.versionAtLeast django.version "2.0";
buildInputs = [ pyflakes pep8 ];
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";
meta = with stdenv.lib; {
meta = with lib; {
description = ''
A content management platform built using the Django framework
'';
@ -63,11 +62,13 @@ buildPythonPackage rec {
Mezzanine provides most of its functionality by default. This
approach yields a more integrated and efficient platform.
'';
homepage = http://mezzanine.jupo.org/;
downloadPage = https://github.com/stephenmcd/mezzanine/releases;
homepage = "http://mezzanine.jupo.org/";
downloadPage = "https://github.com/stephenmcd/mezzanine/releases";
license = licenses.free;
maintainers = with maintainers; [ prikhi ];
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";
};
}