Change:
I have installed the TeXLive package on my system, but its binary script fails to run because: its directory is not found in it does not have an explicitly dependency on it does not have an explicitly dependency on the module for Python 2 cannot be found. Please fix this issues so that the script can be run. (Maybe can take a look at this.)
cc
Well, the first two bullets would be fixed very simply by but I don't yet have framework to add external python dependencies to the scripts.
Nothing new here? A similar problem happens with :
cc Maybe while a good solution is not engineered, a package for without the TeX stuff can be to . It would contain the binary with support for the needed Python dependencies. What do you think?
There aren't any true binaries, are there? It's just python scripts IIRC. But still, what you propose is probably the easiest way to resolve this somehow.
It is just a Python script that depends on the module.
My attempt at it:
So pygmentex works as expected now?
It works! It can be tested by downloading the example document from the distribution on , unzipping the downloaded files, removing the Python script and the LaTeX style class, and than compiling : The result is , with many examples of code listings typeset by Pygments.
OK, then I think we can close this.
Sorry for necromancing this (should I have opened a new issue instead?), but it doesn't "just work" – or needs further documentation on how to use it: The created by building the pygmentex texlive package can not find the module. gives us such an environment, just try running the command from there -The package though provides a executable which works just fine and finds the needed pygments python module. So how to combine these both packages? In particular I ran into this when trying to use the texlive package, as that seems to directly invoke the executable during build. Issue appears on release-18.09
I encountered the same issue, the latex package seems to be working fine tough (and can be used as a replacement)
I have in both with (which provides the style file and a non-functional Python script, because of missing Python dependencies) and (which provides the script). This setup works for me.
I still do not know a way of allowing Python module dependencies for Python scripts installed through .
This is to be fixed in

Discussion:
<del> { stdenv, fetchFromBitbucket, python2Packages }: python2Packages.buildPythonApplication rec { pname = "pygmentex"; version = "0.8"; tlType = "run"; src = fetchFromBitbucket { owner = "romildo"; repo = pname; rev = version; sha256 = "07dnv7hgppy15bda2kcbrlvfqzl6lhza80klc7133dwg8q92hm6m"; }; pythonPath = with python2Packages; [ pygments chardet ]; dontBuild = true; doCheck = false; installPhase = '' mkdir -p $out/bin cp -a pygmentex.py $out/bin mkdir -p $out/scripts/pygmentex ln -s $out/bin/pygmentex.py $out/scripts/pygmentex mkdir -p $out/tex/latex/pygmentex cp -a pygmentex.sty $out/tex/latex/pygmentex mkdir -p $out/doc/latex/pygmentex cp -a README demo.* blueshade.png Factorial.java $out/doc/latex/pygmentex ''; meta = with stdenv.lib; { homepage = https://www.ctan.org/pkg/pygmentex; description = "Auxiliary tool for typesetting code listings in LaTeX documents using Pygments"; longDescription = '' PygmenTeX is a Python-based LaTeX package that can be used for typesetting code listings in a LaTeX document using Pygments. Pygments is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code. This package installs just the script needed to process code listings snippets extracted from the a LaTeX document by the pygmentex LaTeX package. In order to use it effectivelly the texlive package pygmentex also has to be installed. This can be done by adding pygmentex to texlive.combine. ''; license = licenses.lppl13c; platforms = platforms.unix; maintainers = with maintainers; [ romildo ]; }; } </del>

, texlive , zlib, libiconv, libpng, libX11 , freetype, gd, libXaw, icu, ghostscript, libXpm, libXmu, libXext <del> , perl, perlPackages, pkgconfig, autoreconfHook </del> <ins> , perl, perlPackages, python2Packages, pkgconfig, autoreconfHook </ins> , poppler, libpaper, graphite2, zziplib, harfbuzz, potrace, gmp, mpfr , cairo, pixman, xorg, clisp, biber, xxHash , makeWrapper, shortenPerlShebang

}; <ins> pygmentex = python2Packages.buildPythonApplication rec { pname = "pygmentex"; inherit (src) version; src = stdenv.lib.head (builtins.filter (p: p.tlType == "run") texlive.pygmentex.pkgs); propagatedBuildInputs = with python2Packages; [ pygments chardet ]; dontBuild = true; doCheck = false; installPhase = '' runHook preInstall install -D ./scripts/pygmentex/pygmentex.py "$out"/bin/pygmentex runHook postInstall ''; meta = with stdenv.lib; { homepage = https://www.ctan.org/pkg/pygmentex; description = "Auxiliary tool for typesetting code listings in LaTeX documents using Pygments"; longDescription = '' PygmenTeX is a Python-based LaTeX package that can be used for typesetting code listings in a LaTeX document using Pygments. Pygments is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code. ''; license = licenses.lppl13c; maintainers = with maintainers; [ romildo ]; }; }; </ins> inherit biber; bibtexu = bibtex8; bibtex8 = stdenv.mkDerivation {

ppl-address-book = throw "deprecated in 2019-05-02: abandoned by upstream."; processing3 = processing; # added 2019-08-16 procps-ng = procps; # added 2018-06-08 <ins> pygmentex = texlive.bin.pygmentex; # added 2019-12-15 </ins> pyo3-pack = maturin; pmenu = throw "pmenu has been removed from nixpkgs, as its maintainer is no longer interested in the package."; # added 2019-12-10 pulseaudioLight = pulseaudio; # added 2018-04-25

pydf = callPackage ../applications/misc/pydf { }; <del> pygmentex = callPackage ../tools/typesetting/pygmentex { }; </del> pympress = callPackage ../applications/office/pympress { }; pythonIRClib = pythonPackages.pythonIRClib;