01ed8ef136
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
48 lines
939 B
Nix
48 lines
939 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pandoc
|
|
, pandocfilters
|
|
, pythonOlder
|
|
, substituteAll
|
|
, texlive
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pypandoc";
|
|
version = "1.10";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "JessicaTegner";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256:05m585l4sipjzpkrv4yj5s7w45yxhxlym55lkhnavsshlvisinkz";
|
|
};
|
|
|
|
patches = [
|
|
(substituteAll {
|
|
src = ./static-pandoc-path.patch;
|
|
pandoc = "${lib.getBin pandoc}/bin/pandoc";
|
|
pandocVersion = pandoc.version;
|
|
})
|
|
./skip-tests.patch
|
|
];
|
|
|
|
checkInputs = [
|
|
texlive.combined.scheme-small
|
|
pandocfilters
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pypandoc"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Thin wrapper for pandoc";
|
|
homepage = "https://github.com/JessicaTegner/pypandoc";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ sternenseemann bennofs ];
|
|
};
|
|
}
|