a425ba4985
GitOrigin-RevId: 5b091d4fbe3b7b7493c3b46fe0842e4b30ea24b3
33 lines
747 B
Nix
33 lines
747 B
Nix
{ lib, substituteAll, buildPythonPackage, fetchPypi
|
|
, pandoc, texlive
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pypandoc";
|
|
version = "1.7.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1wk8jxnysb7sa55zhxx5brylv00ivamqbk1b4lbzi58ziij08p03";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./static-pandoc-path.patch;
|
|
pandoc = "${lib.getBin pandoc}/bin/pandoc";
|
|
pandocVersion = pandoc.version;
|
|
})
|
|
./skip-tests.patch
|
|
];
|
|
|
|
checkInputs = [
|
|
texlive.combined.scheme-small
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Thin wrapper for pandoc";
|
|
homepage = "https://github.com/NicklasTegner/pypandoc";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ sternenseemann bennofs ];
|
|
};
|
|
}
|