1 { buildPythonApplication
13 pname = "pandoc-acro";
17 inherit pname version;
18 hash = "sha256-JMfSQXX+BCGdFQYPFB+r08WRnhT3aXfnBNINROxCUA0=";
21 buildPythonApplication {
22 inherit pname version src;
24 propagatedBuildInputs = [
29 # Something in the tests does not typecheck, but the tool works well.
32 passthru.tests.example-doc =
38 (texliveTeTeX.withPackages (ps: with ps; [ acro translations ]))
42 runCommand "pandoc-acro-example-docs" env ''
44 exampleFile="${pname}-${version}/tests/example.md"
45 metadataFile="${pname}-${version}/tests/metadata.yaml"
46 tar --extract "--file=${src}" "$exampleFile" "$metadataFile"
49 pandoc -F pandoc-acro "$exampleFile" "--metadata-file=$metadataFile" \
50 -T pdf -o $out/example.pdf
51 pandoc -F pandoc-acro "$exampleFile" "--metadata-file=$metadataFile" \
52 -T txt -o $out/example.txt
54 ! grep -q "\+afaik" $out/example.txt
58 homepage = "https://pypi.org/project/pandoc-acro/";
59 description = "Pandoc filter which manages acronyms in Pandoc flavored Markdown sources";
60 license = licenses.bsd2;
61 maintainers = with maintainers; [ tfc ];
62 mainProgram = "pandoc-acro";