2021-12-30 13:39:12 +00:00
|
|
|
{ lib, substituteAll, buildPythonPackage, fetchPypi
|
2021-04-12 18:23:04 +00:00
|
|
|
, pandoc, texlive
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pypandoc";
|
2021-12-30 13:39:12 +00:00
|
|
|
version = "1.7.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1wk8jxnysb7sa55zhxx5brylv00ivamqbk1b4lbzi58ziij08p03";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|