1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, isPyPy
5, pyflakes
6, pep8
7, django
8, django_contrib_comments
9, filebrowser_safe
10, grappelli_safe
11, bleach
12, tzlocal
13, beautifulsoup4
14, requests
15, requests_oauthlib
16, future
17, pillow
18, chardet
19}:
20
21buildPythonPackage rec {
22 version = "4.3.1";
23 pname = "Mezzanine";
24
25 src = fetchPypi {
26 inherit pname version;
27 sha256 = "42c7909953cc5aea91921b47d804b61e14893bf48a2a476ce49a96559a0fa1d3";
28 };
29
30 disabled = isPyPy;
31
32 buildInputs = [ pyflakes pep8 ];
33 propagatedBuildInputs = [ django django_contrib_comments filebrowser_safe grappelli_safe bleach tzlocal beautifulsoup4 requests requests_oauthlib future pillow chardet ];
34
35 # Tests Fail Due to Syntax Warning, Fixed for v3.1.11+
36 doCheck = false;
37 # sed calls will be unecessary in v3.1.11+
38 preConfigure = ''
39 sed -i 's/==/>=/' setup.py
40 '';
41
42 LC_ALL="en_US.UTF-8";
43
44 meta = with stdenv.lib; {
45 description = ''
46 A content management platform built using the Django framework
47 '';
48 longDescription = ''
49 Mezzanine is a powerful, consistent, and flexible content
50 management platform. Built using the Django framework, Mezzanine
51 provides a simple yet highly extensible architecture that
52 encourages diving in and hacking on the code. Mezzanine is BSD
53 licensed and supported by a diverse and active community.
54
55 In some ways, Mezzanine resembles tools such as Wordpress that
56 provide an intuitive interface for managing pages, blog posts,
57 form data, store products, and other types of content. But
58 Mezzanine is also different. Unlike many other platforms that
59 make extensive use of modules or reusable applications,
60 Mezzanine provides most of its functionality by default. This
61 approach yields a more integrated and efficient platform.
62 '';
63 homepage = http://mezzanine.jupo.org/;
64 downloadPage = https://github.com/stephenmcd/mezzanine/releases;
65 license = licenses.free;
66 maintainers = with maintainers; [ prikhi ];
67 platforms = platforms.unix;
68 };
69
70}