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";
|
2021-12-19 01:06:50 +00:00
|
|
|
version = "1.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-07-14 22:03:04 +00:00
|
|
|
owner = "NicklasTegner";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
2021-09-18 10:52:07 +00:00
|
|
|
rev = "v${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
sha256 = "00r88qcvc9jpi8jvd6rpizz9gm33aq8hc3mf8lrarrjiq2fsxmk9";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
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";
|
2021-07-14 22:03:04 +00:00
|
|
|
pandocVersion = pandoc.version;
|
2020-11-30 08:33:03 +00:00
|
|
|
})
|
2021-04-12 18:23:04 +00:00
|
|
|
./skip-tests.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";
|
2021-07-14 22:03:04 +00:00
|
|
|
homepage = "https://github.com/NicklasTegner/pypandoc";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sternenseemann bennofs ];
|
|
|
|
};
|
|
|
|
}
|