depot/third_party/nixpkgs/pkgs/development/python-modules/pandoc-latex-environment/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

42 lines
919 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
poetry-dynamic-versioning,
panflute,
pytestCheckHook,
pandoc,
}:
buildPythonPackage rec {
pname = "pandoc-latex-environment";
version = "1.1.6.4";
pyproject = true;
src = fetchFromGitHub {
owner = "chdemko";
repo = "pandoc-latex-environment";
rev = "refs/tags/${version}";
hash = "sha256-DLuLFCKP5ip3duHlGAZnFip7GCDzWK91bka3DrknQSA=";
};
build-system = [
poetry-core
poetry-dynamic-versioning
];
dependencies = [ panflute ];
pythonImportsCheck = [ "pandoc_latex_environment" ];
nativeCheckInputs = [
pytestCheckHook
pandoc
];
meta = {
description = "Pandoc filter for adding LaTeX environment on specific div";
homepage = "https://github.com/chdemko/pandoc-latex-environment";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ sigmanificient ];
};
}