bb584b27e9
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
33 lines
746 B
Nix
33 lines
746 B
Nix
{ lib, substituteAll, buildPythonPackage, fetchPypi
|
|
, pandoc, texlive
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pypandoc";
|
|
version = "1.7.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-gCwmquF7ZBNsbQBpSdjOGDp9TZ+9Ty0FHmb0+59FylA=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|