diff --git a/pkgs/development/python-modules/mezzanine/default.nix b/pkgs/development/python-modules/mezzanine/default.nix index 567a1c66e029..d27fd8620459 100644 --- a/pkgs/development/python-modules/mezzanine/default.nix +++ b/pkgs/development/python-modules/mezzanine/default.nix @@ -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"; }; }