depot/third_party/nixpkgs/pkgs/tools/misc/pandoc-include/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

35 lines
738 B
Nix

{ buildPythonApplication
, fetchFromGitHub
, lib
, natsort
, panflute
, setuptools
}:
buildPythonApplication rec {
pname = "pandoc-include";
version = "1.2.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "DCsunset";
repo = pname;
rev = "v${version}";
sha256 = "sha256-kuxud7m+sWcNqE8A+Fwb8ATgiUwxQvHeYBTyw1UzX4U=";
};
nativeBuildInputs = [
setuptools
];
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 ];
};
}