2022-08-12 12:06:08 +00:00
|
|
|
{ lib, substituteAll, buildPythonPackage, fetchFromGitHub
|
2021-04-12 18:23:04 +00:00
|
|
|
, pandoc, texlive
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pypandoc";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.8.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NicklasTegner";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-1vQmONQFJrjptwVVjw25Wyt59loatjScsdnSax+q/f8=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|