1From 165ee1f4c1208636254392335d34934dc50d273e Mon Sep 17 00:00:00 2001
2From: ppenguin <hieronymusv@gmail.com>
3Date: Tue, 15 Mar 2022 23:15:07 +0100
4Subject: [PATCH] fix setup.py to work in nixpkgs
5
6---
7 setup.py | 13 ++-----------
8 1 file changed, 2 insertions(+), 11 deletions(-)
9
10diff --git a/setup.py b/setup.py
11index 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)