depot/third_party/nixpkgs/pkgs/development/python-modules/pypandoc/default.nix
Default email 1a0302a145 Project import generated by Copybara.
GitOrigin-RevId: 311ceed827f531f88f46222920cd1ebb2c101f73
2021-04-12 20:23:04 +02:00

35 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 ];
};
}