nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 beautifulsoup4,
4 bleach,
5 buildPythonPackage,
6 chardet,
7 django,
8 django-contrib-comments,
9 fetchFromGitHub,
10 filebrowser-safe,
11 grappelli-safe,
12 isPyPy,
13 pillow,
14 pytestCheckHook,
15 pytest-cov-stub,
16 pytest-django,
17 pytz,
18 requests,
19 requests-oauthlib,
20 requirements-parser,
21 setuptools,
22 tzlocal,
23}:
24
25buildPythonPackage rec {
26 pname = "mezzanine";
27 version = "6.1.1";
28 format = "setuptools";
29
30 disabled = isPyPy;
31
32 src = fetchFromGitHub {
33 owner = "stephenmcd";
34 repo = "mezzanine";
35 tag = "v${version}";
36 hash = "sha256-TdGWlquS4hsnxIM0bhbWR7C0X4wyUcqC+YrBDSShRhg=";
37 };
38
39 patches = [
40 # drop git requirement from tests and fake stable branch
41 ./tests-no-git.patch
42 ];
43
44 build-system = [ setuptools ];
45
46 dependencies = [
47 beautifulsoup4
48 bleach
49 chardet
50 django
51 django-contrib-comments
52 filebrowser-safe
53 grappelli-safe
54 pillow
55 pytz
56 requests
57 requests-oauthlib
58 tzlocal
59 ]
60 ++ bleach.optional-dependencies.css;
61
62 nativeCheckInputs = [
63 pytest-django
64 pytest-cov-stub
65 pytestCheckHook
66 requirements-parser
67 ];
68
69 meta = {
70 # not updated to django 5.x
71 broken = lib.versionAtLeast django.version "5";
72 description = "Content management platform built using the Django framework";
73 mainProgram = "mezzanine-project";
74 longDescription = ''
75 Mezzanine is a powerful, consistent, and flexible content
76 management platform. Built using the Django framework, Mezzanine
77 provides a simple yet highly extensible architecture that
78 encourages diving in and hacking on the code. Mezzanine is BSD
79 licensed and supported by a diverse and active community.
80
81 In some ways, Mezzanine resembles tools such as Wordpress that
82 provide an intuitive interface for managing pages, blog posts,
83 form data, store products, and other types of content. But
84 Mezzanine is also different. Unlike many other platforms that
85 make extensive use of modules or reusable applications,
86 Mezzanine provides most of its functionality by default. This
87 approach yields a more integrated and efficient platform.
88 '';
89 homepage = "http://mezzanine.jupo.org/";
90 downloadPage = "https://github.com/stephenmcd/mezzanine/releases";
91 license = lib.licenses.bsd2;
92 maintainers = with lib.maintainers; [ prikhi ];
93 platforms = lib.platforms.unix;
94 };
95}