blob: 06ffa030c884d2eb31760b49b35e511668c778e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pandoc,
pandocfilters,
poetry-core,
replaceVars,
texliveSmall,
}:
buildPythonPackage rec {
pname = "pypandoc";
version = "1.16.2";
pyproject = true;
src = fetchFromGitHub {
owner = "JessicaTegner";
repo = "pypandoc";
tag = "v${version}";
hash = "sha256-h0Ur5kWyKz1NCEMdnE0eNCYMAEqjx3g/tnfXs1h9zCs=";
};
patches = [
(replaceVars ./static-pandoc-path.patch {
pandoc = "${lib.getBin pandoc}/bin/pandoc";
pandocVersion = pandoc.version;
})
./skip-tests.patch
];
nativeBuildInputs = [ poetry-core ];
nativeCheckInputs = [
texliveSmall
pandocfilters
];
pythonImportsCheck = [ "pypandoc" ];
meta = {
description = "Thin wrapper for pandoc";
homepage = "https://github.com/JessicaTegner/pypandoc";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
sternenseemann
bennofs
];
};
}
|