···11+From 165ee1f4c1208636254392335d34934dc50d273e Mon Sep 17 00:00:00 2001
22+From: ppenguin <hieronymusv@gmail.com>
33+Date: Tue, 15 Mar 2022 23:15:07 +0100
44+Subject: [PATCH] fix setup.py to work in nixpkgs
55+66+---
77+ setup.py | 13 ++-----------
88+ 1 file changed, 2 insertions(+), 11 deletions(-)
99+1010+diff --git a/setup.py b/setup.py
1111+index d705846..d7345a2 100644
1212+--- a/setup.py
1313++++ b/setup.py
1414+@@ -42,10 +42,10 @@
1515+1616+ author='Thomas J. Duck',
1717+ author_email='tomduck@tomduck.ca',
1818+- description='Equation number filter for pandoc',
1919++ description='Section number filter for pandoc',
2020+ long_description=DESCRIPTION,
2121+ license='GPL',
2222+- keywords='pandoc equation numbers filter',
2323++ keywords='pandoc section numbers filter',
2424+ url='https://github.com/tomduck/pandoc-secnos',
2525+ download_url='https://github.com/tomduck/pandoc-secnos/tarball/' + \
2626+ __version__,
2727+@@ -63,12 +63,3 @@
2828+ 'Programming Language :: Python'
2929+ ]
3030+ )
3131+-
3232+-# Check that the pandoc-secnos script is on the PATH
3333+-if not shutil.which('pandoc-secnos'):
3434+- msg = """
3535+- ERROR: `pandoc-secnos` script not found. This will need to
3636+- be corrected. If you need help, please file an Issue at
3737+- https://github.com/tomduck/pandoc-secnos/issues.\n"""
3838+- print(textwrap.dedent(msg))
3939+- sys.exit(-1)
+1
pkgs/top-level/all-packages.nix
···83358335 # pandoc-*nos is a filter suite, where pandoc-xnos has all functionality and the others are used for only specific functionality
83368336 pandoc-eqnos = python3Packages.callPackage ../tools/misc/pandoc-eqnos { };
83378337 pandoc-fignos = python3Packages.callPackage ../tools/misc/pandoc-fignos { };
83388338+ pandoc-secnos = python3Packages.callPackage ../tools/misc/pandoc-secnos { };
8338833983398340 patray = callPackage ../tools/audio/patray { };
83408341