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