2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2022-04-27 09:35:20 +00:00
|
|
|
, beautifulsoup4
|
|
|
|
, bleach
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, chardet
|
2020-04-24 23:36:52 +00:00
|
|
|
, django
|
2023-08-04 22:07:22 +00:00
|
|
|
, django-contrib-comments
|
2022-04-27 09:35:20 +00:00
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, filebrowser_safe
|
|
|
|
, future
|
2022-04-27 09:35:20 +00:00
|
|
|
, grappelli_safe
|
|
|
|
, isPyPy
|
|
|
|
, pep8
|
2020-04-24 23:36:52 +00:00
|
|
|
, pillow
|
2022-04-27 09:35:20 +00:00
|
|
|
, pyflakes
|
|
|
|
, pythonOlder
|
2023-08-22 20:05:09 +00:00
|
|
|
, pytz
|
2022-04-27 09:35:20 +00:00
|
|
|
, requests
|
|
|
|
, requests-oauthlib
|
|
|
|
, tzlocal
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "mezzanine";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "6.0.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-11-02 22:02:43 +00:00
|
|
|
disabled = pythonOlder "3.7" || isPyPy;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "Mezzanine";
|
|
|
|
inherit version;
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-R/PB4PFQpVp6jnCasyPszgC294SKjLzq2oMkR2qV86s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
buildInputs = [
|
|
|
|
pyflakes
|
|
|
|
pep8
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
bleach
|
|
|
|
chardet
|
|
|
|
django
|
2023-08-04 22:07:22 +00:00
|
|
|
django-contrib-comments
|
2022-04-27 09:35:20 +00:00
|
|
|
filebrowser_safe
|
|
|
|
future
|
|
|
|
grappelli_safe
|
|
|
|
pillow
|
2023-08-22 20:05:09 +00:00
|
|
|
pytz
|
2022-04-27 09:35:20 +00:00
|
|
|
requests
|
|
|
|
requests-oauthlib
|
|
|
|
tzlocal
|
2022-11-02 22:02:43 +00:00
|
|
|
] ++ bleach.optional-dependencies.css;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Tests Fail Due to Syntax Warning, Fixed for v3.1.11+
|
|
|
|
doCheck = false;
|
2022-11-02 22:02:43 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
# sed calls will be unnecessary in v3.1.11+
|
2020-04-24 23:36:52 +00:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's/==/>=/' setup.py
|
|
|
|
'';
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "Content management platform built using the Django framework";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
Mezzanine is a powerful, consistent, and flexible content
|
|
|
|
management platform. Built using the Django framework, Mezzanine
|
|
|
|
provides a simple yet highly extensible architecture that
|
|
|
|
encourages diving in and hacking on the code. Mezzanine is BSD
|
|
|
|
licensed and supported by a diverse and active community.
|
|
|
|
|
|
|
|
In some ways, Mezzanine resembles tools such as Wordpress that
|
|
|
|
provide an intuitive interface for managing pages, blog posts,
|
|
|
|
form data, store products, and other types of content. But
|
|
|
|
Mezzanine is also different. Unlike many other platforms that
|
|
|
|
make extensive use of modules or reusable applications,
|
|
|
|
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";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.bsd2;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ prikhi ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|
2022-04-27 09:35:20 +00:00
|
|
|
|