git: cc4ae2843896 - main - devel/py-airtable-python-wrapper: Add py-airtable-python-wrapper 0.15.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Mar 2023 19:23:42 UTC
The branch main has been updated by sunpoet:

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

commit cc4ae28438969833faf377ae503160f6caf5596a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:35:01 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:19:49 +0000

    devel/py-airtable-python-wrapper: Add py-airtable-python-wrapper 0.15.3
    
    Python Client for the Airtable API
---
 devel/Makefile                                      |  1 +
 devel/py-airtable-python-wrapper/Makefile           | 21 +++++++++++++++++++++
 devel/py-airtable-python-wrapper/distinfo           |  3 +++
 .../py-airtable-python-wrapper/files/patch-setup.py | 11 +++++++++++
 devel/py-airtable-python-wrapper/pkg-descr          |  1 +
 5 files changed, 37 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index f176ddf58612..1bf93c1d9367 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4176,6 +4176,7 @@
     SUBDIR += py-aiorpcX
     SUBDIR += py-aiortc
     SUBDIR += py-aiosignal
+    SUBDIR += py-airtable-python-wrapper
     SUBDIR += py-amalgamate
     SUBDIR += py-aniso8601
     SUBDIR += py-aniso86016
diff --git a/devel/py-airtable-python-wrapper/Makefile b/devel/py-airtable-python-wrapper/Makefile
new file mode 100644
index 000000000000..0f353c4356e2
--- /dev/null
+++ b/devel/py-airtable-python-wrapper/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	airtable-python-wrapper
+PORTVERSION=	0.15.3
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Python API Wrapper for the Airtable API
+WWW=		https://github.com/gtalarico/pyairtable/tree/airtable-python-wrapper
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=2:www/py-requests@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-airtable-python-wrapper/distinfo b/devel/py-airtable-python-wrapper/distinfo
new file mode 100644
index 000000000000..830cc2cb34ae
--- /dev/null
+++ b/devel/py-airtable-python-wrapper/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1677770915
+SHA256 (airtable-python-wrapper-0.15.3.tar.gz) = d901e703e0e44d65c77a68a0ce96970a167fb7023a797a70e0f4f437dae193d8
+SIZE (airtable-python-wrapper-0.15.3.tar.gz) = 14349
diff --git a/devel/py-airtable-python-wrapper/files/patch-setup.py b/devel/py-airtable-python-wrapper/files/patch-setup.py
new file mode 100644
index 000000000000..26e48c1273a0
--- /dev/null
+++ b/devel/py-airtable-python-wrapper/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2021-07-27 05:35:10 UTC
++++ setup.py
+@@ -7,7 +7,7 @@ about = {}
+ with open(os.path.join(here, "airtable", "__version__.py"), mode="r") as f:
+     exec(f.read(), about)
+ 
+-setup_requires = ["pytest-runner"]
++setup_requires = []
+ install_requires = ["requests>=2"]
+ tests_require = ["requests-mock", "requests", "mock", "pytest"]
+ 
diff --git a/devel/py-airtable-python-wrapper/pkg-descr b/devel/py-airtable-python-wrapper/pkg-descr
new file mode 100644
index 000000000000..b732e5277c7e
--- /dev/null
+++ b/devel/py-airtable-python-wrapper/pkg-descr
@@ -0,0 +1 @@
+Python Client for the Airtable API