2021-04-12 18:23:04 +00:00
|
|
|
{ lib, substituteAll, buildPythonPackage, fetchFromGitHub
|
|
|
|
, pandoc, texlive
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pypandoc";
|
|
|
|
version = "1.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bebraw";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1lpslfns6zxx7b0xr13bzg921lwrj5am8za0b2dviywk6iiib0ld";
|
|
|
|
};
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
patches = [
|
2021-04-12 18:23:04 +00:00
|
|
|
(substituteAll {
|
|
|
|
src = ./static-pandoc-path.patch;
|
|
|
|
pandoc = "${lib.getBin pandoc}/bin/pandoc";
|
2020-11-30 08:33:03 +00:00
|
|
|
})
|
2021-04-12 18:23:04 +00:00
|
|
|
./skip-tests.patch
|
|
|
|
./new-pandoc-headings.patch
|
2020-11-30 08:33:03 +00:00
|
|
|
];
|
|
|
|
|
2021-04-12 18:23:04 +00:00
|
|
|
checkInputs = [
|
|
|
|
texlive.combined.scheme-small
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Thin wrapper for pandoc";
|
|
|
|
homepage = "https://github.com/bebraw/pypandoc";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sternenseemann bennofs ];
|
|
|
|
};
|
|
|
|
}
|