2022-03-30 09:31:56 +00:00
|
|
|
{ buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, natsort
|
|
|
|
, panflute
|
2024-02-29 20:09:43 +00:00
|
|
|
, lxml
|
2022-09-30 11:47:45 +00:00
|
|
|
, setuptools
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "pandoc-include";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.3.0";
|
|
|
|
pyproject = true;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DCsunset";
|
2024-02-29 20:09:43 +00:00
|
|
|
repo = "pandoc-include";
|
2024-02-07 01:22:34 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-aqewWSPxl3BpUIise/rPgBQPsyCOxU6gBlzT1u2mHY0=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
propagatedBuildInputs = [ natsort panflute lxml ];
|
2022-03-30 09:31:56 +00: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-29 20:09:43 +00:00
|
|
|
maintainers = with maintainers; [ ppenguin DCsunset ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "pandoc-include";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
}
|