nixpkgs/pkgs/tools/misc/pandoc-include/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
810 B
Nix
Raw Normal View History

{ buildPythonApplication
, fetchFromGitHub
, lib
, natsort
, panflute
2024-02-10 20:17:29 +00:00
, lxml
, setuptools
}:
buildPythonApplication rec {
pname = "pandoc-include";
2024-03-31 16:12:24 +00:00
version = "1.3.1";
2024-02-10 20:17:29 +00:00
pyproject = true;
src = fetchFromGitHub {
owner = "DCsunset";
2024-02-10 20:17:29 +00:00
repo = "pandoc-include";
2024-01-22 23:02:14 +00:00
rev = "refs/tags/v${version}";
2024-03-31 16:12:24 +00:00
hash = "sha256-8TIGw6p9c61oSH3ld14rmeG6wZY9u9JHALImxXM3c3Y=";
};
nativeBuildInputs = [
setuptools
];
2024-02-10 20:17:29 +00:00
propagatedBuildInputs = [ natsort panflute lxml ];
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 20:17:29 +00:00
maintainers = with maintainers; [ ppenguin DCsunset ];
2023-11-27 01:17:53 +00:00
mainProgram = "pandoc-include";
};
}