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