1{ stdenv, buildPythonPackage, fetchPypi 2, pip, pandoc, glibcLocales, haskellPackages, texlive }: 3 4buildPythonPackage rec { 5 pname = "pypandoc"; 6 version = "1.4"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "e914e6d5f84a76764887e4d909b09d63308725f0cbb5293872c2c92f07c11a5b"; 11 }; 12 13 # Fix tests: first requires network access, second is a bug (reported upstream) 14 preConfigure = '' 15 substituteInPlace tests.py --replace "pypandoc.convert(url, 'html')" "'GPL2 license'" 16 substituteInPlace tests.py --replace "pypandoc.convert_file(file_name, lua_file_name)" "'<h1 id=\"title\">title</h1>'" 17 ''; 18 19 LC_ALL="en_US.UTF-8"; 20 21 propagatedBuildInputs = [ pip ]; 22 23 buildInputs = [ pandoc texlive.combined.scheme-small haskellPackages.pandoc-citeproc glibcLocales ]; 24 25 meta = with stdenv.lib; { 26 description = "Thin wrapper for pandoc"; 27 homepage = https://github.com/bebraw/pypandoc; 28 license = licenses.mit; 29 maintainers = with maintainers; [ bennofs ]; 30 31 broken = true; # incompatible with pandoc v2 32 }; 33}