2022-05-06 18:27:00 +02:00
|
|
|
{ buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, pandoc-xnos
|
2022-09-19 03:59:54 +02:00
|
|
|
, setuptools
|
2022-05-06 18:27:00 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "pandoc-secnos";
|
|
|
|
version = "2.2.2";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomduck";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-J9KLZvioYM3Pl2UXjrEgd4PuLTwCLYy9SsJIzgw5/jU=";
|
|
|
|
};
|
|
|
|
|
2022-09-19 03:59:54 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-05-06 18:27:00 +02:00
|
|
|
propagatedBuildInputs = [ pandoc-xnos ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./patch/fix-manifest.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
# Different pandoc executables are not available
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Standalone pandoc filter from the pandoc-xnos suite for numbering sections and section references";
|
|
|
|
homepage = "https://github.com/tomduck/pandoc-secnos";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ ppenguin ];
|
|
|
|
};
|
|
|
|
}
|