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";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "1.7.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-gCwmquF7ZBNsbQBpSdjOGDp9TZ+9Ty0FHmb0+59FylA=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|