1{ lib, substituteAll, buildPythonPackage, fetchFromGitHub
2, pandoc, texlive
3}:
4
5buildPythonPackage rec {
6 pname = "pypandoc";
7 version = "1.6.4";
8
9 src = fetchFromGitHub {
10 owner = "NicklasTegner";
11 repo = pname;
12 rev = "v${version}";
13 sha256 = "0rssjig3nwdi4qvsjq7v7k8jyv6l9szfl5dp1a8s54c4j4dw37nh";
14 };
15
16 patches = [
17 (substituteAll {
18 src = ./static-pandoc-path.patch;
19 pandoc = "${lib.getBin pandoc}/bin/pandoc";
20 pandocVersion = pandoc.version;
21 })
22 ./skip-tests.patch
23 ];
24
25 checkInputs = [
26 texlive.combined.scheme-small
27 ];
28
29 meta = with lib; {
30 description = "Thin wrapper for pandoc";
31 homepage = "https://github.com/NicklasTegner/pypandoc";
32 license = licenses.mit;
33 maintainers = with maintainers; [ sternenseemann bennofs ];
34 };
35}