27077f1149
* 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!
36 lines
776 B
Nix
36 lines
776 B
Nix
{ lib, substituteAll, buildPythonPackage, fetchFromGitHub
|
|
, pandoc, texlive
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pypandoc";
|
|
version = "1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bebraw";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1lpslfns6zxx7b0xr13bzg921lwrj5am8za0b2dviywk6iiib0ld";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./static-pandoc-path.patch;
|
|
pandoc = "${lib.getBin pandoc}/bin/pandoc";
|
|
})
|
|
./skip-tests.patch
|
|
./new-pandoc-headings.patch
|
|
];
|
|
|
|
checkInputs = [
|
|
texlive.combined.scheme-small
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Thin wrapper for pandoc";
|
|
homepage = "https://github.com/bebraw/pypandoc";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ sternenseemann bennofs ];
|
|
};
|
|
}
|