depot/third_party/nixpkgs/pkgs/tools/misc/pandoc-include/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

36 lines
784 B
Nix

{ buildPythonApplication
, fetchFromGitHub
, lib
, natsort
, panflute
, setuptools
}:
buildPythonApplication rec {
pname = "pandoc-include";
version = "1.2.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "DCsunset";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-BDMg3zxNoVtO4dI1t4Msi1UwH+D8uZjBIezsER5KWHA=";
};
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 ];
mainProgram = "pandoc-include";
};
}