git: e360b8abfce0 - main - textproc/py-pymdown-extensions: Update to 9.4

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Sat, 19 Nov 2022 13:48:16 UTC
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e360b8abfce055f3b674cfbad57d3314855cd701

commit e360b8abfce055f3b674cfbad57d3314855cd701
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2022-11-19 13:44:29 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2022-11-19 13:44:29 +0000

    textproc/py-pymdown-extensions: Update to 9.4
    
    Changelog:
    
    https://github.com/facelessuser/pymdown-extensions/releases/tag/9.4
---
 textproc/py-pymdown-extensions/Makefile            |  7 +++-
 textproc/py-pymdown-extensions/distinfo            |  6 ++--
 .../py-pymdown-extensions/files/patch-setup.py     | 42 ++++++++++++++++++++++
 3 files changed, 51 insertions(+), 4 deletions(-)

diff --git a/textproc/py-pymdown-extensions/Makefile b/textproc/py-pymdown-extensions/Makefile
index e4d046fe9428..18398944be4d 100644
--- a/textproc/py-pymdown-extensions/Makefile
+++ b/textproc/py-pymdown-extensions/Makefile
@@ -1,8 +1,9 @@
 PORTNAME=	pymdown-extensions
-DISTVERSION=	9.3
+DISTVERSION=	9.4
 CATEGORIES=	textproc python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	pymdown_extensions-${DISTVERSION}
 
 MAINTAINER=	kai@FreeBSD.org
 COMMENT=	Extension pack for Python Markdown
@@ -18,4 +19,8 @@ USE_PYTHON=	autoplist distutils
 
 NO_ARCH=	yes
 
+# Avoid that pyproject.toml is read during setup otherwise build fails
+post-extract:
+	@${MV} ${WRKSRC}/pyproject.toml ${WRKSRC}/pyproject.toml.dist
+
 .include <bsd.port.mk>
diff --git a/textproc/py-pymdown-extensions/distinfo b/textproc/py-pymdown-extensions/distinfo
index 2493dcadf964..a81e1f4ba320 100644
--- a/textproc/py-pymdown-extensions/distinfo
+++ b/textproc/py-pymdown-extensions/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1647896902
-SHA256 (pymdown-extensions-9.3.tar.gz) = a80553b243d3ed2d6c27723bcd64ca9887e560e6f4808baa96f36e93061eaf90
-SIZE (pymdown-extensions-9.3.tar.gz) = 716818
+TIMESTAMP = 1668854734
+SHA256 (pymdown_extensions-9.4.tar.gz) = 1baa22a60550f731630474cad28feb0405c8101f1a7ddc3ec0ed86ee510bcc43
+SIZE (pymdown_extensions-9.4.tar.gz) = 741111
diff --git a/textproc/py-pymdown-extensions/files/patch-setup.py b/textproc/py-pymdown-extensions/files/patch-setup.py
new file mode 100644
index 000000000000..20eabc148567
--- /dev/null
+++ b/textproc/py-pymdown-extensions/files/patch-setup.py
@@ -0,0 +1,42 @@
+Generated via adding
+
+[tool.hatch.build.targets.sdist]
+support-legacy = true
+
+to setup.py and then run "hatchling build".
+
+--- setup.py.orig	2022-11-19 11:48:49 UTC
++++ setup.py
+@@ -0,0 +1,32 @@
++# -*- coding: utf-8 -*-
++from setuptools import setup
++
++setup(
++    name='pymdown-extensions',
++    version='9.4',
++    description='Extension pack for Python Markdown.',
++    long_description='',
++    author_email='Isaac Muse <Isaac.Muse@gmail.com>',
++    classifiers=[
++        'Development Status :: 5 - Production/Stable',
++        'Environment :: Console',
++        'Intended Audience :: Developers',
++        'License :: OSI Approved :: MIT License',
++        'Operating System :: OS Independent',
++        'Programming Language :: Python :: 3',
++        'Programming Language :: Python :: 3.7',
++        'Programming Language :: Python :: 3.8',
++        'Programming Language :: Python :: 3.9',
++        'Programming Language :: Python :: 3.10',
++        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
++        'Topic :: Software Development :: Libraries :: Python Modules',
++        'Topic :: Text Processing :: Filters',
++        'Topic :: Text Processing :: Markup :: HTML',
++    ],
++    install_requires=[
++        'markdown>=3.2',
++    ],
++    packages=[
++        'pymdownx',
++    ],
++)