Skip to content

Commit

Permalink
pypandoc: 1.2.0 (broken) -> 1.3.3 (#22782)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoff3r authored and zimbatm committed Feb 15, 2017
1 parent 8978a9e commit 0ed06bc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/maintainers.nix
Expand Up @@ -249,6 +249,7 @@
koral = "Koral <koral@mailoo.org>";
kovirobi = "Kovacsics Robert <kovirobi@gmail.com>";
kragniz = "Louis Taylor <louis@kragniz.eu>";
kristoff3r = "Kristoffer Søholm <k.soeholm@gmail.com>";
ktosiek = "Tomasz Kontusz <tomasz.kontusz@gmail.com>";
lassulus = "Lassulus <lassulus@gmail.com>";
layus = "Guillaume Maudoux <layus.on@gmail.com>";
Expand Down
20 changes: 15 additions & 5 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -31916,18 +31916,28 @@ EOF
};

pypandoc = buildPythonPackage rec {
name = "pypandoc-1.2.0";
name = "pypandoc-1.3.3";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pypandoc/${name}.zip";
sha256 = "1sxmgrpy0a0yy3nyxiymzqrw715gm23s01fq53q4vgn79j47jakm";
url = "mirror://pypi/p/pypandoc/${name}.tar.gz";
sha256 = "0628f2kn4gqimnhpf251fgzl723hwgyl3idy69dkzyjvi45s5zm6";
};

# Fix tests: first requires network access, second is a bug (reported upstream)
preConfigure = ''
substituteInPlace tests.py --replace "pypandoc.convert(url, 'html')" "'GPL2 license'"
substituteInPlace tests.py --replace "pypandoc.convert_file(file_name, lua_file_name)" "'<h1 id=\"title\">title</h1>'"
'';

LC_ALL="en_US.UTF-8";

propagatedBuildInputs = with self; [ self.pip ];
buildInputs = [ pkgs.pandoc pkgs.texlive.combined.scheme-small pkgs.haskellPackages.pandoc-citeproc ];
buildInputs = [ pkgs.pandoc pkgs.texlive.combined.scheme-small pkgs.haskellPackages.pandoc-citeproc pkgs.glibcLocales ];

meta = with pkgs.stdenv.lib; {
description = "Thin wrapper for pandoc";
homepage = "https://github.com/bebraw/pypandoc";
license = licenses.mit;
maintainers = with maintainers; [ bennofs ];
maintainers = with maintainers; [ bennofs kristoff3r ];
};
};

Expand Down

0 comments on commit 0ed06bc

Please sign in to comment.