lol

pandoc-secnos: init at 2.2.2

+74
+34
pkgs/tools/misc/pandoc-secnos/default.nix
··· 1 + { buildPythonApplication 2 + , fetchFromGitHub 3 + , lib 4 + , pandoc-xnos 5 + }: 6 + 7 + buildPythonApplication rec { 8 + pname = "pandoc-secnos"; 9 + version = "2.2.2"; 10 + format = "pyproject"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "tomduck"; 14 + repo = pname; 15 + rev = version; 16 + sha256 = "sha256-J9KLZvioYM3Pl2UXjrEgd4PuLTwCLYy9SsJIzgw5/jU="; 17 + }; 18 + 19 + propagatedBuildInputs = [ pandoc-xnos ]; 20 + 21 + patches = [ 22 + ./patch/fix-manifest.patch 23 + ]; 24 + 25 + # Different pandoc executables are not available 26 + doCheck = false; 27 + 28 + meta = with lib; { 29 + description = "Standalone pandoc filter from the pandoc-xnos suite for numbering sections and section references"; 30 + homepage = "https://github.com/tomduck/pandoc-secnos"; 31 + license = licenses.gpl3Only; 32 + maintainers = with maintainers; [ ppenguin ]; 33 + }; 34 + }
+39
pkgs/tools/misc/pandoc-secnos/patch/fix-manifest.patch
··· 1 + From 165ee1f4c1208636254392335d34934dc50d273e Mon Sep 17 00:00:00 2001 2 + From: ppenguin <hieronymusv@gmail.com> 3 + Date: Tue, 15 Mar 2022 23:15:07 +0100 4 + Subject: [PATCH] fix setup.py to work in nixpkgs 5 + 6 + --- 7 + setup.py | 13 ++----------- 8 + 1 file changed, 2 insertions(+), 11 deletions(-) 9 + 10 + diff --git a/setup.py b/setup.py 11 + index d705846..d7345a2 100644 12 + --- a/setup.py 13 + +++ b/setup.py 14 + @@ -42,10 +42,10 @@ 15 + 16 + author='Thomas J. Duck', 17 + author_email='tomduck@tomduck.ca', 18 + - description='Equation number filter for pandoc', 19 + + description='Section number filter for pandoc', 20 + long_description=DESCRIPTION, 21 + license='GPL', 22 + - keywords='pandoc equation numbers filter', 23 + + keywords='pandoc section numbers filter', 24 + url='https://github.com/tomduck/pandoc-secnos', 25 + download_url='https://github.com/tomduck/pandoc-secnos/tarball/' + \ 26 + __version__, 27 + @@ -63,12 +63,3 @@ 28 + 'Programming Language :: Python' 29 + ] 30 + ) 31 + - 32 + -# Check that the pandoc-secnos script is on the PATH 33 + -if not shutil.which('pandoc-secnos'): 34 + - msg = """ 35 + - ERROR: `pandoc-secnos` script not found. This will need to 36 + - be corrected. If you need help, please file an Issue at 37 + - https://github.com/tomduck/pandoc-secnos/issues.\n""" 38 + - print(textwrap.dedent(msg)) 39 + - sys.exit(-1)
+1
pkgs/top-level/all-packages.nix
··· 8335 8335 # pandoc-*nos is a filter suite, where pandoc-xnos has all functionality and the others are used for only specific functionality 8336 8336 pandoc-eqnos = python3Packages.callPackage ../tools/misc/pandoc-eqnos { }; 8337 8337 pandoc-fignos = python3Packages.callPackage ../tools/misc/pandoc-fignos { }; 8338 + pandoc-secnos = python3Packages.callPackage ../tools/misc/pandoc-secnos { }; 8338 8339 8339 8340 patray = callPackage ../tools/audio/patray { }; 8340 8341