2021-12-21 12:58:21 +01:00
|
|
|
{ lib, substituteAll, buildPythonPackage, fetchPypi
|
2021-03-29 15:40:30 +02:00
|
|
|
, pandoc, texlive
|
|
|
|
}:
|
2017-07-15 14:51:07 +07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pypandoc";
|
2021-12-21 12:58:21 +01:00
|
|
|
version = "1.7.2";
|
2017-07-15 14:51:07 +07:00
|
|
|
|
2021-12-21 12:58:21 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1wk8jxnysb7sa55zhxx5brylv00ivamqbk1b4lbzi58ziij08p03";
|
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";
|
2021-07-08 15:30:40 +02:00
|
|
|
pandocVersion = pandoc.version;
|
2020-11-22 19:16:29 +01:00
|
|
|
})
|
2021-03-29 15:40:30 +02:00
|
|
|
./skip-tests.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";
|
2021-07-08 15:30:40 +02:00
|
|
|
homepage = "https://github.com/NicklasTegner/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
|
|
|
};
|
|
|
|
}
|