3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pypandoc/static-pandoc-path.patch
sternenseemann 27077f1149 python3Packages.pypandoc: vendor patches, test w/o pandoc-citeproc
* Translate all seds in postPatch into patches (for setting the static
  path and skipping the test that needs network access)
* The patch for the changed pandoc heading generation was simplified:
  Since we know our pandoc version is always that new, we can skip the
  version check.
* Skip the test for pandoc-citeproc: pandoc-citeproc has been deprecated
  in favor of pandoc --citeproc by the upstream pandoc developer.
  pypandoc's testsuite doesn't reflect this yet (although it should
  support --citeproc theoretically) to avoid depending on
  pandoc-citeproc for the checkPhase (as we expect it to break again or
  continue to be broken) we skip the test requiring pandoc-citeproc.

The breakage of pypandoc due to pandoc-citeproc was pointed out here:
https://github.com/NixOS/nixpkgs/pull/116635#issuecomment-809258707
Thank you!
2021-04-09 14:36:01 +02:00

11 lines
263 B
Diff

diff --git a/pypandoc/__init__.py b/pypandoc/__init__.py
index 6d5b79b..65437aa 100644
--- a/pypandoc/__init__.py
+++ b/pypandoc/__init__.py
@@ -582,4 +582,4 @@ def clean_pandocpath_cache():
__version = None
-__pandoc_path = None
+__pandoc_path = "@pandoc@"