python312Packages.pandoc-xnos: patch for Pandoc 3 support
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
fetchpatch,
|
||||
pandocfilters,
|
||||
psutil,
|
||||
setuptools,
|
||||
@@ -10,20 +11,29 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "pandoc-xnos";
|
||||
version = "2.5.0";
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tomduck";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
repo = "pandox-xnos";
|
||||
tag = version;
|
||||
hash = "sha256-beiGvN0DS6s8wFjcDKozDuwAM2OApX3lTRaUDRUqLeU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
patches = [
|
||||
# This patch fix the Pandoc 3 compatibility.
|
||||
# See: https://github.com/tomduck/pandoc-xnos/pull/29
|
||||
(fetchpatch {
|
||||
url = "https://github.com/tomduck/pandoc-xnos/commit/284474574f51888be75603e7d1df667a0890504d.patch";
|
||||
hash = "sha256-j6xaFXo3jtXGPL58aIp8RTqeQZhJ8cVKL/iUbUhXBF0=";
|
||||
})
|
||||
];
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
pythonRelaxDeps = [ "psutil" ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
pandocfilters
|
||||
psutil
|
||||
];
|
||||
@@ -33,11 +43,11 @@ buildPythonPackage rec {
|
||||
# tests need some patching
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Pandoc filter suite providing facilities for cross-referencing in markdown documents";
|
||||
mainProgram = "pandoc-xnos";
|
||||
homepage = "https://github.com/tomduck/pandoc-xnos";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ ppenguin ];
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [ ppenguin ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user