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