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 Permalink Normal View History

{ buildPythonApplication
, fetchFromGitHub
, lib
, natsort
, panflute
2024-02-10 21:17:29 +01:00
, lxml
, setuptools
}:
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;
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=";
};
nativeBuildInputs = [
setuptools
];
2024-02-10 21:17:29 +01: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 21:17:29 +01:00
maintainers = with maintainers; [ ppenguin DCsunset ];
2023-11-27 02:17:53 +01:00
mainProgram = "pandoc-include";
};
}