depot/third_party/nixpkgs/pkgs/development/python-modules/pypandoc/default.nix
Default email 8a45d4525b Project import generated by Copybara.
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
2022-03-30 11:31:56 +02:00

33 lines
746 B
Nix

{ lib, substituteAll, buildPythonPackage, fetchPypi
, pandoc, texlive
}:
buildPythonPackage rec {
pname = "pypandoc";
version = "1.7.4";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-KN4j9kbZ6ARAPGth180yptdso1arx563IXvb/2dI+G4=";
};
patches = [
(substituteAll {
src = ./static-pandoc-path.patch;
pandoc = "${lib.getBin pandoc}/bin/pandoc";
pandocVersion = pandoc.version;
})
./skip-tests.patch
];
checkInputs = [
texlive.combined.scheme-small
];
meta = with lib; {
description = "Thin wrapper for pandoc";
homepage = "https://github.com/NicklasTegner/pypandoc";
license = licenses.mit;
maintainers = with maintainers; [ sternenseemann bennofs ];
};
}