2022-03-27 17:25:44 +02:00
|
|
|
{ buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, natsort
|
|
|
|
, panflute
|
2024-02-10 21:17:29 +01:00
|
|
|
, lxml
|
2022-09-19 03:59:21 +02:00
|
|
|
, setuptools
|
2022-03-27 17:25:44 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "pandoc-include";
|
2024-03-31 18:12:24 +02:00
|
|
|
version = "1.3.1";
|
2024-02-10 21:17:29 +01:00
|
|
|
pyproject = true;
|
2022-03-27 17:25:44 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DCsunset";
|
2024-02-10 21:17:29 +01:00
|
|
|
repo = "pandoc-include";
|
2024-01-23 00:02:14 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-03-31 18:12:24 +02:00
|
|
|
hash = "sha256-8TIGw6p9c61oSH3ld14rmeG6wZY9u9JHALImxXM3c3Y=";
|
2022-03-27 17:25:44 +02:00
|
|
|
};
|
|
|
|
|
2022-09-19 03:59:21 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-02-10 21:17:29 +01:00
|
|
|
propagatedBuildInputs = [ natsort panflute lxml ];
|
2022-03-27 17:25:44 +02:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "pandoc_include.main" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pandoc filter to allow file and header includes";
|
|
|
|
homepage = "https://github.com/DCsunset/pandoc-include";
|
|
|
|
license = licenses.mit;
|
2024-02-10 21:17:29 +01:00
|
|
|
maintainers = with maintainers; [ ppenguin DCsunset ];
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "pandoc-include";
|
2022-03-27 17:25:44 +02:00
|
|
|
};
|
|
|
|
}
|