git: 3892971a0e90 - main - devel/py-decopatch: Add py-decopatch 1.4.10

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 11 Sep 2023 03:13:43 UTC
The branch main has been updated by sunpoet:

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

commit 3892971a0e909dd1a12cba705dfb696f80cda8e2
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-09-11 03:00:45 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-09-11 03:00:45 +0000

    devel/py-decopatch: Add py-decopatch 1.4.10
    
    Because of a tiny oddity in the python language, writing decorators without help
    can be a pain because you have to handle the no-parenthesis usage explicitly.
    decopatch provides a simple way to solve this issue so that writing decorators
    is simple and straightforward.
---
 devel/Makefile                           |  1 +
 devel/py-decopatch/Makefile              | 25 +++++++++++++++++++++++++
 devel/py-decopatch/distinfo              |  3 +++
 devel/py-decopatch/files/patch-setup.cfg | 10 ++++++++++
 devel/py-decopatch/pkg-descr             |  4 ++++
 5 files changed, 43 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index be2fa3163ec1..c3ad4db17b0f 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4576,6 +4576,7 @@
     SUBDIR += py-debtcollector
     SUBDIR += py-debugpy
     SUBDIR += py-debugtools
+    SUBDIR += py-decopatch
     SUBDIR += py-decorator
     SUBDIR += py-decoratortools
     SUBDIR += py-deepdiff
diff --git a/devel/py-decopatch/Makefile b/devel/py-decopatch/Makefile
new file mode 100644
index 000000000000..69ca79cea777
--- /dev/null
+++ b/devel/py-decopatch/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	decopatch
+PORTVERSION=	1.4.10
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Create decorators easily in python
+WWW=		https://smarie.github.io/python-decopatch/ \
+		https://github.com/smarie/python-decopatch
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=39.2:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}makefun>=1.5.0:devel/py-makefun@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-decopatch/distinfo b/devel/py-decopatch/distinfo
new file mode 100644
index 000000000000..96f4b79508a9
--- /dev/null
+++ b/devel/py-decopatch/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1694348224
+SHA256 (decopatch-1.4.10.tar.gz) = 957f49c93f4150182c23f8fb51d13bb3213e0f17a79e09c8cca7057598b55720
+SIZE (decopatch-1.4.10.tar.gz) = 69538
diff --git a/devel/py-decopatch/files/patch-setup.cfg b/devel/py-decopatch/files/patch-setup.cfg
new file mode 100644
index 000000000000..8a5394ac4f2d
--- /dev/null
+++ b/devel/py-decopatch/files/patch-setup.cfg
@@ -0,0 +1,10 @@
+--- setup.cfg.orig	2022-03-01 08:57:14 UTC
++++ setup.cfg
+@@ -27,7 +27,6 @@ classifiers = 
+ [options]
+ setup_requires = 
+ 	setuptools_scm
+-	pytest-runner
+ install_requires = 
+ 	makefun>=1.5.0
+ 	funcsigs;python_version<'3.3'
diff --git a/devel/py-decopatch/pkg-descr b/devel/py-decopatch/pkg-descr
new file mode 100644
index 000000000000..7c74ae37ae37
--- /dev/null
+++ b/devel/py-decopatch/pkg-descr
@@ -0,0 +1,4 @@
+Because of a tiny oddity in the python language, writing decorators without help
+can be a pain because you have to handle the no-parenthesis usage explicitly.
+decopatch provides a simple way to solve this issue so that writing decorators
+is simple and straightforward.