2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
poetry-dynamic-versioning,
|
|
|
|
panflute,
|
|
|
|
pytestCheckHook,
|
|
|
|
pandoc,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pandoc-latex-environment";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.1.7.0";
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chdemko";
|
|
|
|
repo = "pandoc-latex-environment";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-iKzveVTScqF8dAGPx7JU66Z5oyoZ82t101z5xeiHYqw=";
|
2024-07-27 06:49:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|