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
|
2024-06-05 15:53:02 +00:00
|
|
|
, nix-update-script
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "pandoc-include";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.3.2";
|
2024-02-29 20:09:43 +00:00
|
|
|
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-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-8gG1xkDuIN007uYSwSWgsDW4IFVIE44v3j7FN0RaZwU=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
passthru.updateScript = nix-update-script {};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|