git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages: pelican upgrade to 3.6.0 and added ghp-import package

- added ghc-import, smartypants and typogrify packages. last 2 needed as a dependency for pelican buildInputs - updated pelican to 3.6.0 and enable tests - added myself (garbas) as maintainer to bunch of packages which I use. - removed usage if python.isPypy and replace it with isPyPy

commit3d2a2fdd6ff836219c0003e9a105e5c8258bde3e authorRok Garbas <rok@garbas.si> dateWed 17 Jun 2015, 17:50 (11 years ago) parentcad2554
1 file changed+94−23
pkgs/top-level/python-packages.nix+94−23
pkgs/top-level/python-packages.nix+94−23
@@ -1305,6 +1305,7 @@ let
13051305 homepage = http://pythonhosted.org/blinker/;
13061306 description = "Fast, simple object-to-object and broadcast signaling";
13071307 license = licenses.mit;
1308+ maintainers = with maintainers; [ garbas ];
13081309 };
13091310 };
13101311
@@ -4904,8 +4905,9 @@ let
49044905 doCheck = false;
49054906
49064907 meta = {
4907− homepage = http://docutils.sourceforge.net/;
49084908 description = "An open-source text processing system for processing plaintext documentation into useful formats, such as HTML or LaTeX";
4909+ homepage = http://docutils.sourceforge.net/;
4910+ maintainers = with maintainers; [ garbas ];
49094911 };
49104912 };
49114913
@@ -5089,8 +5091,9 @@ let
50895091 propagatedBuildInputs = with self; [ six pytz ];
50905092
50915093 meta = {
5092− homepage = https://github.com/dmdm/feedgenerator-py3k.git;
50935094 description = "Standalone version of django.utils.feedgenerator, compatible with Py3k";
5095+ homepage = https://github.com/dmdm/feedgenerator-py3k.git;
5096+ maintainers = with maintainers; [ garbas ];
50945097 };
50955098 });
50965099
@@ -6430,7 +6433,7 @@ let
64306433 sha256 = "2e24ac5d004db5714976a04ac0e80c6df6e47e98c354cb2c0d82f8879d4f8fdb";
64316434 };
64326435
6433− propagatedBuildInputs = with self; [ self.markupsafe ];
6436+ propagatedBuildInputs = with self; [ markupsafe ];
64346437
64356438 meta = {
64366439 homepage = http://jinja.pocoo.org/;
@@ -6442,7 +6445,7 @@ let
64426445 an optional sandboxed environment.
64436446 '';
64446447 platforms = platforms.all;
6445− maintainers = with maintainers; [ pierron ];
6448+ maintainers = with maintainers; [ pierron garbas ];
64466449 };
64476450 };
64486451
@@ -6856,8 +6859,8 @@ let
68566859 meta = {
68576860 description = "Implements a XML/HTML/XHTML Markup safe string";
68586861 homepage = http://dev.pocoo.org;
6859− license = "BSD";
6860− maintainers = with maintainers; [ iElectric ];
6862+ license = licenses.bsd3;
6863+ maintainers = with maintainers; [ iElectric garbas ];
68616864 };
68626865 };
68636866
@@ -8434,33 +8437,46 @@ let
84348437
84358438 pelican = buildPythonPackage rec {
84368439 name = "pelican-${version}";
8437− version = "3.5.0";
8440+ version = "3.6.0";
8441+ disabled = isPy26;
84388442
8439− src = pkgs.fetchurl {
8440− url = "https://pypi.python.org/packages/source/p/pelican/${name}.tar.gz";
8441− sha256 = "0dl8i26sa20iijlg3z9gxn3p6f1d9v44b9742929xfaqwj4amvdp";
8443+ src = pkgs.fetchFromGitHub {
8444+ owner = "getpelican";
8445+ repo = "pelican";
8446+ rev = version;
8447+ sha256 = "0a9r90d85rn2cvl6yyk6q5i5kwz9igfj8fdwi37zsx4ijhmn2b5j";
84428448 };
84438449
8444− preConfigure = ''
8445− export LC_ALL="en_US.UTF-8"
8446− '';
8447−
8448− # Test data not provided
8449− #buildInputs = [nose mock];
8450− doCheck = false;
8451−
8452− buildInputs = [ pkgs.glibcLocales ];
8450+ buildInputs = with self; [
8451+ pkgs.glibcLocales
8452+ pkgs.pandoc
8453+ pkgs.git
8454+ mock
8455+ nose
8456+ markdown
8457+ beautifulsoup4
8458+ lxml
8459+ typogrify
8460+ ];
84538461
84548462 propagatedBuildInputs = with self; [
84558463 jinja2 pygments docutils pytz unidecode six dateutil feedgenerator
84568464 blinker pillow beautifulsoup4 markupsafe
84578465 ];
84588466
8467+ postPatch= ''
8468+ sed -i -e "s|'git'|'${pkgs.git}/bin/git'|" pelican/tests/test_pelican.py
8469+ '';
8470+
8471+ preConfigure = ''
8472+ export LC_ALL="en_US.UTF-8"
8473+ '';
8474+
84598475 meta = {
8460− homepage = http://getpelican.com/;
84618476 description = "A tool to generate a static blog from reStructuredText or Markdown input files";
8477+ homepage = "http://getpelican.com/";
84628478 license = licenses.agpl3;
8463− maintainers = with maintainers; [ offline prikhi ];
8479+ maintainers = with maintainers; [ offline prikhi garbas ];
84648480 };
84658481 };
84668482
@@ -9635,7 +9651,7 @@ let
96359651 homepage = http://pygments.org/;
96369652 description = "A generic syntax highlighter";
96379653 license = licenses.bsd2;
9638− maintainers = with maintainers; [ nckx ];
9654+ maintainers = with maintainers; [ nckx garbas ];
96399655 };
96409656 };
96419657
@@ -14191,7 +14207,7 @@ let
1419114207 md5 = "6c73c5b668a67fdc116a25b884058ed9";
1419214208 };
1419314209
14194− doCheck = !(python.isPypy or false);
14210+ doCheck = !isPyPy;
1419514211
1419614212 propagatedBuildInputs = with self; [ zope_interface zope_exceptions zope_location ];
1419714213
@@ -15889,4 +15905,59 @@ let
1588915905 };
1589015906 };
1589115907
15908+ ghp-import = buildPythonPackage rec {
15909+ version = "0.4.1";
15910+ name = "ghp-import-${version}";
15911+ src = pkgs.fetchurl {
15912+ url = "https://pypi.python.org/packages/source/g/ghp-import/${name}.tar.gz";
15913+ md5 = "99e018372990c03ab355aa62c34965c5";
15914+ };
15915+ disabled = isPyPy;
15916+ buildInputs = [ pkgs.glibcLocales ];
15917+ preConfigure = ''
15918+ export LC_ALL="en_US.UTF-8"
15919+ '';
15920+ meta = {
15921+ description = "Copy your docs directly to the gh-pages branch.";
15922+ homepage = "http://github.com/davisp/ghp-import";
15923+ license = "Tumbolia Public License";
15924+ maintainers = with maintainers; [ garbas ];
15925+ };
15926+ };
15927+
15928+ typogrify = buildPythonPackage rec {
15929+ name = "typogrify-2.0.7";
15930+ src = pkgs.fetchurl {
15931+ url = "https://pypi.python.org/packages/source/t/typogrify/${name}.tar.gz";
15932+ md5 = "63f38f80531996f187d2894cc497ba08";
15933+ };
15934+ disabled = isPyPy;
15935+ propagatedBuildInputs = with self; [ smartypants ];
15936+ meta = {
15937+ description = "Filters to enhance web typography, including support for Django & Jinja templates";
15938+ homepage = "https://github.com/mintchaos/typogrify";
15939+ license = licenses.bsd3;
15940+ maintainers = with maintainers; [ garbas ];
15941+ };
15942+ };
15943+
15944+ smartypants = buildPythonPackage rec {
15945+ version = "1.8.6";
15946+ name = "smartypants-${version}";
15947+ src = pkgs.fetchhg {
15948+ url = "https://bitbucket.org/livibetter/smartypants.py";
15949+ rev = "v${version}";
15950+ sha256 = "1cmzz44d2hm6y8jj2xcq1wfr26760gi7iq92ha8xbhb1axzd7nq6";
15951+ };
15952+ disabled = isPyPy;
15953+ buildInputs = with self; [ ]; #docutils pygments ];
15954+ meta = {
15955+ description = "Python with the SmartyPants";
15956+ homepage = "https://bitbucket.org/livibetter/smartypants.py";
15957+ license = licenses.bsd3;
15958+ maintainers = with maintainers; [ garbas ];
15959+ };
15960+ };
15961+
15962+
1589215963}; in pythonPackages