2022-11-19 10:07:18 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pandoc
|
|
|
|
, pandocfilters
|
|
|
|
, pythonOlder
|
|
|
|
, substituteAll
|
|
|
|
, texlive
|
2021-03-29 15:40:30 +02:00
|
|
|
}:
|
2017-07-15 14:51:07 +07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pypandoc";
|
2022-11-16 17:30:41 +01:00
|
|
|
version = "1.10";
|
2017-07-15 14:51:07 +07:00
|
|
|
|
2022-11-19 10:07:18 +01:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2022-07-16 12:59:28 +02:00
|
|
|
src = fetchFromGitHub {
|
2022-11-16 17:30:41 +01:00
|
|
|
owner = "JessicaTegner";
|
2022-07-16 12:59:28 +02:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-16 17:30:41 +01:00
|
|
|
hash = "sha256:05m585l4sipjzpkrv4yj5s7w45yxhxlym55lkhnavsshlvisinkz";
|
2017-07-15 14:51:07 +07:00
|
|
|
};
|
|
|
|
|
2020-11-22 19:16:29 +01:00
|
|
|
patches = [
|
2021-03-29 15:40:30 +02:00
|
|
|
(substituteAll {
|
|
|
|
src = ./static-pandoc-path.patch;
|
|
|
|
pandoc = "${lib.getBin pandoc}/bin/pandoc";
|
2021-07-08 15:30:40 +02:00
|
|
|
pandocVersion = pandoc.version;
|
2020-11-22 19:16:29 +01:00
|
|
|
})
|
2021-03-29 15:40:30 +02:00
|
|
|
./skip-tests.patch
|
2020-11-22 19:16:29 +01:00
|
|
|
];
|
|
|
|
|
2021-03-29 15:40:30 +02:00
|
|
|
checkInputs = [
|
|
|
|
texlive.combined.scheme-small
|
2022-11-16 17:30:41 +01:00
|
|
|
pandocfilters
|
2021-03-29 15:40:30 +02:00
|
|
|
];
|
2017-07-15 14:51:07 +07:00
|
|
|
|
2022-11-19 10:07:18 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pypandoc"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-07-15 14:51:07 +07:00
|
|
|
description = "Thin wrapper for pandoc";
|
2022-11-16 17:30:41 +01:00
|
|
|
homepage = "https://github.com/JessicaTegner/pypandoc";
|
2017-07-15 14:51:07 +07:00
|
|
|
license = licenses.mit;
|
2020-01-19 12:41:36 +01:00
|
|
|
maintainers = with maintainers; [ sternenseemann bennofs ];
|
2017-07-15 14:51:07 +07:00
|
|
|
};
|
|
|
|
}
|