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