2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
pandocfilters,
|
|
|
|
psutil,
|
|
|
|
setuptools,
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pandoc-xnos";
|
|
|
|
version = "2.5.0";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomduck";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-beiGvN0DS6s8wFjcDKozDuwAM2OApX3lTRaUDRUqLeU=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pandocfilters
|
|
|
|
psutil
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pandocxnos" ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
# tests need some patching
|
|
|
|
doCheck = false;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pandoc filter suite providing facilities for cross-referencing in markdown documents";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pandoc-xnos";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://github.com/tomduck/pandoc-xnos";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ ppenguin ];
|
|
|
|
};
|
|
|
|
}
|