git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #13826 from romildo/new.pygmentex

pygmentex: init at 0.8

commit91211f2601b9e61b6c5767e276e27eb5835fd1a3 authorLuca Bruno <lucabru@src.gnome.org> dateFri 11 Mar 2016, 10:39 (11 years ago) parent6f9fe31b6db54b
2 files changed+47
pkgs/tools/typesetting/pygmentex/default.nix+45 pkgs/top-level/all-packages.nix+2
pkgs/tools/typesetting/pygmentex/default.nixnew file+45
@@ -0,0 +1,45 @@
1+{ stdenv, fetchzip, python2Packages }:
2+
3+python2Packages.buildPythonApplication rec {
4+ name = "pygmentex-${version}";
5+ version = "0.8";
6+
7+ src = fetchzip {
8+ url = "http://mirrors.ctan.org/macros/latex/contrib/pygmentex.zip";
9+ sha256 = "1nm19pvhlv51mv2sdankndhw64ys9r7ch6szzd6i4jz8zr86kn9v";
10+ };
11+
12+ pythonPath = [ python2Packages.pygments python2Packages.chardet ];
13+
14+ buildPhase = ":";
15+
16+ doCheck = false;
17+
18+ installPhase = ''
19+
20+ mkdir -p $out/bin
21+ cp -a pygmentex.py $out/bin
22+ '';
23+
24+ meta = with stdenv.lib; {
25+ homepage = https://www.ctan.org/pkg/pygmentex;
26+ description = "Auxiliary tool for typesetting code listings in LaTeX documents using Pygments";
27+ longDescription = ''
28+ PygmenTeX is a Python-based LaTeX package that can be used for
29+ typesetting code listings in a LaTeX document using Pygments.
30+
31+ Pygments is a generic syntax highlighter for general use in all kinds of
32+ software such as forum systems, wikis or other applications that need to
33+ prettify source code.
34+
35+ This package installs just the script needed to process code listings
36+ snippets extracted from the a LaTeX document by the pygmentex LaTeX
37+ package. In order to use it effectivelly the texlive package pygmentex
38+ also has to be installed. This can be done by adding pygmentex to
39+ texlive.combine.
40+ '';
41+ license = licenses.lppl13c;
42+ maintainers = with maintainers; [ romildo ];
43+ platforms = platforms.unix;
44+ };
45+}
pkgs/top-level/all-packages.nix+2
@@ -3004,6 +3004,8 @@ let
30043004
30053005 pydb = callPackage ../development/tools/pydb { };
30063006
3007+ pygmentex = callPackage ../tools/typesetting/pygmentex { };
3008+
30073009 pystringtemplate = callPackage ../development/python-modules/stringtemplate { };
30083010
30093011 pythonDBus = dbus_python;