2021-03-29 15:40:30 +02:00
|
|
|
{ lib, substituteAll, buildPythonPackage, fetchFromGitHub
|
|
|
|
, pandoc, texlive
|
|
|
|
}:
|
2017-07-15 14:51:07 +07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pypandoc";
|
2021-09-14 22:48:32 +02:00
|
|
|
version = "1.6.4";
|
2017-07-15 14:51:07 +07:00
|
|
|
|
2019-12-12 17:44:53 +01:00
|
|
|
src = fetchFromGitHub {
|
2021-07-08 15:30:40 +02:00
|
|
|
owner = "NicklasTegner";
|
2019-12-12 17:44:53 +01:00
|
|
|
repo = pname;
|
2021-09-14 22:48:32 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0rssjig3nwdi4qvsjq7v7k8jyv6l9szfl5dp1a8s54c4j4dw37nh";
|
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
|
|
|
};
|
|
|
|
}
|