git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #5341 from prikhi/add-mezzanine

Add Mezzanine, a Django CMS

commit6dc7771cdc6bc7eb57ef649b887ef3fa5582f30a authorGeorges Dubus <georges.dubus@gmail.com> dateThu 1 Jan 2015, 22:30 (12 years ago) parentc39e305b5ff6c2
1 file changed+241−21
pkgs/top-level/python-packages.nix+241−21
pkgs/top-level/python-packages.nix+241−21
@@ -964,6 +964,37 @@ let
964964 };
965965 };
966966
967+ bleach = buildPythonPackage rec {
968+ version = "v1.4";
969+ name = "bleach-${version}";
970+
971+ src = pkgs.fetchurl {
972+ url = "http://github.com/jsocol/bleach/archive/${version}.tar.gz";
973+ sha256 = "19v0zhvchz89w179rwkc4ah3cj2gbcng9alwa2yla89691g8b0b0";
974+ };
975+
976+ propagatedBuildInputs = with self; [ six html5lib ];
977+
978+ meta = with stdenv.lib; {
979+ description = "An easy, HTML5, whitelisting HTML sanitizer.";
980+ longDescription = ''
981+ Bleach is an HTML sanitizing library that escapes or strips markup and
982+ attributes based on a white list. Bleach can also linkify text safely,
983+ applying filters that Django's urlize filter cannot, and optionally
984+ setting rel attributes, even on links already in the text.
985+
986+ Bleach is intended for sanitizing text from untrusted sources. If you
987+ find yourself jumping through hoops to allow your site administrators
988+ to do lots of things, you're probably outside the use cases. Either
989+ trust those users, or don't.
990+ '';
991+ homepage = https://github.com/jsocol/bleach;
992+ downloadPage = https://github.com/jsocol/bleach/releases;
993+ license = licenses.asl20;
994+ maintainers = with maintainers; [ prikhi ];
995+ platforms = platforms.linux;
996+ };
997+ };
967998
968999 blinker = buildPythonPackage rec {
9691000 name = "blinker-${version}";
@@ -4054,6 +4085,35 @@ let
40544085 };
40554086 };
40564087
4088+ filebrowser_safe = buildPythonPackage rec {
4089+ version = "0.3.6";
4090+ name = "filebrowser_safe-${version}";
4091+
4092+ src = pkgs.fetchurl {
4093+ url = "http://pypi.python.org/packages/source/f/filebrowser_safe/${name}.tar.gz";
4094+ md5 = "12a1ad3a1ed6a9377e758c4fa7fee570";
4095+ };
4096+
4097+ meta = with stdenv.lib; {
4098+ description = "A snapshot of django-filebrowser for the Mezzanine CMS";
4099+ longDescription = ''
4100+ filebrowser_safe was created to provide a snapshot of the FileBrowser
4101+ asset manager for Django, to be referenced as a dependency for the
4102+ Mezzanine CMS for Django.
4103+
4104+ At the time of filebrowser_safe's creation, FileBrowser was incorrectly
4105+ packaged on PyPI, and had also dropped compatibility with Django 1.1 -
4106+ filebrowser_safe was therefore created to address these specific
4107+ issues.
4108+ '';
4109+ homepage = https://github.com/stephenmcd/filebrowser-safe;
4110+ downloadPage = https://pypi.python.org/pypi/filebrowser_safe/;
4111+ license = licenses.free;
4112+ maintainers = with maintainers; [ prikhi ];
4113+ platforms = platforms.linux;
4114+ };
4115+ };
4116+
40574117 flake8 = buildPythonPackage (rec {
40584118 name = "flake8-2.1.0";
40594119
@@ -4142,6 +4202,34 @@ let
41424202 };
41434203 };
41444204
4205+ grappelli_safe = buildPythonPackage rec {
4206+ version = "0.3.13";
4207+ name = "grappelli_safe-${version}";
4208+
4209+ src = pkgs.fetchurl {
4210+ url = "http://pypi.python.org/packages/source/g/grappelli_safe/${name}.tar.gz";
4211+ md5 = "5c8c681a0b1df94ecd6dc0b3a8b80892";
4212+ };
4213+
4214+ meta = with stdenv.lib; {
4215+ description = "A snapshot of django-grappelli for the Mezzanine CMS";
4216+ longDescription = ''
4217+ grappelli_safe was created to provide a snapshot of the Grappelli admin
4218+ skin for Django, to be referenced as a dependency for the Mezzanine CMS
4219+ for Django.
4220+
4221+ At the time of grappelli_safe's creation, Grappelli was incorrectly
4222+ packaged on PyPI, and had also dropped compatibility with Django 1.1 -
4223+ grappelli_safe was therefore created to address these specific issues.
4224+ '';
4225+ homepage = https://github.com/stephenmcd/grappelli-safe;
4226+ downloadPage = http://pypi.python.org/pypi/grappelli_safe/;
4227+ license = licenses.free;
4228+ maintainers = with maintainers; [ prikhi ];
4229+ platforms = platforms.linux;
4230+ };
4231+ };
4232+
41454233 python_tvrage = buildPythonPackage (rec {
41464234 version = "0.4.1";
41474235 name = "tvrage-${version}";
@@ -4293,6 +4381,39 @@ let
42934381 };
42944382 });
42954383
4384+ future = buildPythonPackage rec {
4385+ version = "v0.14.3";
4386+ name = "future-${version}";
4387+
4388+ src = pkgs.fetchurl {
4389+ url = "http://github.com/PythonCharmers/python-future/archive/${version}.tar.gz";
4390+ sha256 = "0hgp9kq7h4ipw8ax5xvvkyh3bkqw361d3rndvb9xix01h9j9mi3p";
4391+ };
4392+
4393+ propagatedBuildInputs = with self; optionals isPy26 [ importlib argparse ];
4394+ doCheck = false;
4395+
4396+ meta = with stdenv.lib; {
4397+ description = "Clean single-source support for Python 3 and 2";
4398+ longDescription = ''
4399+ python-future is the missing compatibility layer between Python 2 and
4400+ Python 3. It allows you to use a single, clean Python 3.x-compatible
4401+ codebase to support both Python 2 and Python 3 with minimal overhead.
4402+
4403+ It provides future and past packages with backports and forward ports
4404+ of features from Python 3 and 2. It also comes with futurize and
4405+ pasteurize, customized 2to3-based scripts that helps you to convert
4406+ either Py2 or Py3 code easily to support both Python 2 and 3 in a
4407+ single clean Py3-style codebase, module by module.
4408+ '';
4409+ homepage = https://python-future.org;
4410+ downloadPage = https://github.com/PythonCharmers/python-future/releases;
4411+ license = licenses.mit;
4412+ maintainers = with maintainers; [ prikhi ];
4413+ platforms = platforms.linux;
4414+ };
4415+ };
4416+
42964417 futures = buildPythonPackage rec {
42974418 name = "futures-2.1.6";
42984419
@@ -4709,18 +4830,32 @@ let
47094830
47104831
47114832 html5lib = buildPythonPackage (rec {
4712− name = "html5lib-0.95";
4833+ version = "0.999";
4834+ name = "html5lib-${version}";
47134835
47144836 src = pkgs.fetchurl {
4715− url = "http://pypi.python.org/packages/source/h/html5lib/${name}.tar.gz";
4716− md5 = "fe607f9917d81763e842f818f23464ee";
4837+ url = "http://github.com/html5lib/html5lib-python/archive/${version}.tar.gz";
4838+ sha256 = "1kxl36p0csssaf37zbbc9p4h8l1s7yb1qnfv3d4nixplvrxqkybp";
47174839 };
47184840
4719− meta = {
4720− homepage = http://code.google.com/p/html5lib/;
4841+ buildInputs = with self; [ nose flake8 ];
4842+ propagatedBuildInputs = with self; [
4843+ six
4844+ ] ++ optionals isPy26 [ ordereddict ];
4845+
4846+ checkPhase = "nosetests";
4847+
4848+ meta = with stdenv.lib; {
4849+ homepage = https://github.com/html5lib/html5lib-python;
4850+ downloadPage = https://github.com/html5lib/html5lib-python/releases;
47214851 description = "HTML parser based on WHAT-WG HTML5 specification";
4722− license = stdenv.lib.licenses.mit;
4723− maintainers = [ stdenv.lib.maintainers.iElectric ];
4852+ longDescription = ''
4853+ html5lib is a pure-python library for parsing HTML. It is designed to
4854+ conform to the WHATWG HTML specification, as is implemented by all
4855+ major web browsers.
4856+ '';
4857+ license = licenses.mit;
4858+ maintainers = with maintainers; [ iElectric prikhi ];
47244859 };
47254860 });
47264861
@@ -5461,6 +5596,58 @@ let
54615596 };
54625597 };
54635598
5599+ mezzanine = buildPythonPackage rec {
5600+ version = "3.1.10";
5601+ name = "mezzanine-${version}";
5602+
5603+ src = pkgs.fetchurl {
5604+ url = "https://github.com/stephenmcd/mezzanine/archive/${version}.tar.gz";
5605+ sha256 = "1cd7d3dji8q4mvcnf9asxn8j109pd5g5d5shr6xvn0iwr35qprgi";
5606+ };
5607+
5608+ buildInputs = with self; [ pyflakes pep8 ];
5609+ propagatedBuildInputs = with self; [
5610+ django_1_6 filebrowser_safe grappelli_safe bleach tzlocal beautifulsoup4
5611+ requests2 requests_oauthlib future pillow modules.sqlite3
5612+ ];
5613+
5614+ # Tests Fail Due to Syntax Warning, Fixed for v3.1.11+
5615+ doCheck = false;
5616+ # sed calls will be unecessary in v3.1.11+
5617+ preConfigure = ''
5618+ sed -i 's/future == 0.9.0/future>=0.9.0/' setup.py
5619+ sed -i 's/tzlocal == 1.0/tzlocal>=1.0/' setup.py
5620+ sed -i 's/pep8==1.4.1/pep8>=1.4.1/' setup.py
5621+ sed -i 's/pyflakes==0.6.1/pyflakes>=0.6.1/' setup.py
5622+ export LC_ALL="en_US.UTF-8"
5623+ '';
5624+
5625+ meta = with stdenv.lib; {
5626+ description = ''
5627+ A content management platform built using the Django framework.
5628+ '';
5629+ longDescription = ''
5630+ Mezzanine is a powerful, consistent, and flexible content management
5631+ platform. Built using the Django framework, Mezzanine provides a
5632+ simple yet highly extensible architecture that encourages diving in and
5633+ hacking on the code. Mezzanine is BSD licensed and supported by a
5634+ diverse and active community.
5635+
5636+ In some ways, Mezzanine resembles tools such as Wordpress that provide
5637+ an intuitive interface for managing pages, blog posts, form data, store
5638+ products, and other types of content. But Mezzanine is also different.
5639+ Unlike many other platforms that make extensive use of modules or
5640+ reusable applications, Mezzanine provides most of its functionality by
5641+ default. This approach yields a more integrated and efficient platform.
5642+ '';
5643+ homepage = http://mezzanine.jupo.org/;
5644+ downloadPage = https://github.com/stephenmcd/mezzanine/releases;
5645+ license = licenses.free;
5646+ maintainers = with maintainers; [ prikhi ];
5647+ platforms = platforms.linux;
5648+ };
5649+ };
5650+
54645651 minimock = buildPythonPackage rec {
54655652 version = "1.2.8";
54665653 name = "minimock-${version}";
@@ -6293,20 +6480,23 @@ let
62936480
62946481
62956482 oauthlib = buildPythonPackage rec {
6296− name = "oauthlib-0.5.0";
6483+ version = "0.7.2";
6484+ name = "oauthlib-${version}";
62976485
62986486 src = pkgs.fetchurl {
6299− url = "http://pypi.python.org/packages/source/o/oauthlib/${name}.tar.gz";
6300− md5 = "d12c507de33403ebdf290fbffdb98213";
6487+ url = "https://github.com/idan/oauthlib/archive/${version}.tar.gz";
6488+ sha256 = "08b7swyswhxh90k9mp54rk1qks2l2s2pdcjap6x118y27p7dhp4h";
63016489 };
63026490
63036491 buildInputs = with self; [ mock nose unittest2 ];
63046492
6305− propagatedBuildInputs = with self; [ pycrypto ];
6493+ propagatedBuildInputs = with self; [ pycrypto blinker pyjwt ];
63066494
63076495 meta = {
63086496 homepage = https://github.com/idan/oauthlib;
6497+ downloadPage = https://github.com/idan/oauthlib/releases;
63096498 description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic";
6499+ maintainers = with maintainers; [ prikhi ];
63106500 };
63116501 };
63126502
@@ -6599,11 +6789,11 @@ let
65996789
66006790 pelican = buildPythonPackage rec {
66016791 name = "pelican-${version}";
6602− version = "3.4.0";
6792+ version = "3.5.0";
66036793
66046794 src = pkgs.fetchurl {
66056795 url = "https://pypi.python.org/packages/source/p/pelican/${name}.tar.gz";
6606− md5 = "8e57bdd075503903125b14621b1e533d";
6796+ sha256 = "0dl8i26sa20iijlg3z9gxn3p6f1d9v44b9742929xfaqwj4amvdp";
66076797 };
66086798
66096799 preConfigure = ''
@@ -6615,13 +6805,16 @@ let
66156805 #buildInputs = [nose mock];
66166806 doCheck = false;
66176807
6618− propagatedBuildInputs = with self; [jinja2 pygments docutils pytz unidecode six dateutil feedgenerator blinker pillow beautifulsoup4];
6808+ propagatedBuildInputs = with self; [
6809+ jinja2 pygments docutils pytz unidecode six dateutil feedgenerator
6810+ blinker pillow beautifulsoup4
6811+ ];
66196812
66206813 meta = {
66216814 homepage = http://getpelican.com/;
66226815 description = "A tool to generate a static blog from reStructuredText or Markdown input files";
66236816 license = licenses.agpl3;
6624− maintainers = [ stdenv.lib.maintainers.offline ];
6817+ maintainers = with stdenv.lib.maintainers; [ offline prikhi ];
66256818 };
66266819 };
66276820
@@ -6788,7 +6981,10 @@ let
67886981 md5 = "56b6614499aacb7d6b5983c4914daea7";
67896982 };
67906983
6791− buildInputs = with self; [ pkgs.freetype pkgs.libjpeg pkgs.zlib pkgs.libtiff pkgs.libwebp pkgs.tcl ];
6984+ buildInputs = with self; [
6985+ pkgs.freetype pkgs.libjpeg pkgs.zlib pkgs.libtiff pkgs.libwebp pkgs.tcl ]
6986+ ++ optionals (isPy26 || isPyPy) [ pkgs.lcms2 ]
6987+ ++ optionals (isPyPy) [ pkgs.tk pkgs.xlibs.libX11 ];
67926988
67936989 # NOTE: we use LCMS_ROOT as WEBP root since there is not other setting for webp.
67946990 preConfigure = ''
@@ -6815,7 +7011,7 @@ let
68157011
68167012 license = "http://www.pythonware.com/products/pil/license.htm";
68177013
6818− maintainers = [ stdenv.lib.maintainers.goibhniu ];
7014+ maintainers = with stdenv.lib.maintainers; [ goibhniu prikhi ];
68197015 };
68207016 };
68217017
@@ -7507,6 +7703,27 @@ let
75077703 };
75087704 };
75097705
7706+ pyjwt = buildPythonPackage rec {
7707+ version = "0.3.2";
7708+ name = "pyjwt-${version}";
7709+
7710+ src = pkgs.fetchurl {
7711+ url = "http://github.com/progrium/pyjwt/archive/${version}.tar.gz";
7712+ sha256 = "118rzhpyvx1h4hslms4fdizyv6mnyd4g34fv089lvs116pj08k9c";
7713+ };
7714+
7715+ propagatedBuildInputs = with self; [ pycrypto ecdsa ];
7716+
7717+ meta = with stdenv.lib; {
7718+ description = "JSON Web Token implementation in Python";
7719+ longDescription = "A Python implementation of JSON Web Token draft 01.";
7720+ homepage = https://github.com/progrium/pyjwt;
7721+ downloadPage = https://github.com/progrium/pyjwt/releases;
7722+ license = licenses.mit;
7723+ maintainers = with maintainers; [ prikhi ];
7724+ platforms = platforms.linux;
7725+ };
7726+ };
75107727
75117728 pykickstart = buildPythonPackage rec {
75127729 name = "pykickstart-${version}";
@@ -8314,18 +8531,21 @@ let
83148531
83158532
83168533 requests_oauthlib = buildPythonPackage rec {
8317− name = "requests-oauthlib-0.3.2";
8534+ version = "v0.4.1";
8535+ name = "requests-oauthlib-${version}";
83188536
83198537 src = pkgs.fetchurl {
8320− url = "http://pypi.python.org/packages/source/r/requests-oauthlib/${name}.tar.gz";
8321− md5 = "35b3b750493c231145c39db0216813e7";
8538+ url = "http://github.com/requests/requests-oauthlib/archive/${version}.tar.gz";
8539+ sha256 = "0vx252nzq5h9m9brwnw2ph8aj526y26jr2dqcafzzcdx6z4l8vj4";
83228540 };
83238541
8324− propagatedBuildInputs = with self; [ oauthlib requests ];
8542+ doCheck = false; # Internet tests fail when building in chroot
8543+ propagatedBuildInputs = with self; [ oauthlib requests2 ];
83258544
83268545 meta = {
83278546 description = "OAuthlib authentication support for Requests";
83288547 homepage = https://github.com/requests/requests-oauthlib;
8548+ maintainers = with maintainers; [ prikhi ];
83298549 };
83308550 };
83318551