git: 89da83603b1f - main - www/py-wagtail-airtable: Add py-wagtail-airtable 0.5.1

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

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

commit 89da83603b1f2bc5f15e5a6e1db2bad3aa11fb77
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:35:29 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:19:54 +0000

    www/py-wagtail-airtable: Add py-wagtail-airtable 0.5.1
    
    Wagtail/Airtable is an extension for Wagtail allowing content to be transferred
    between Airtable sheets and your Wagtail/Django models.
---
 www/Makefile                                       |  1 +
 www/py-wagtail-airtable/Makefile                   | 28 ++++++++++++++++++++++
 www/py-wagtail-airtable/distinfo                   |  3 +++
 www/py-wagtail-airtable/files/patch-pyproject.toml | 11 +++++++++
 www/py-wagtail-airtable/pkg-descr                  |  2 ++
 5 files changed, 45 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 3639dbbc9077..bf1a68dd1175 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1812,6 +1812,7 @@
     SUBDIR += py-w3lib
     SUBDIR += py-wagtail
     SUBDIR += py-wagtail-2fa
+    SUBDIR += py-wagtail-airtable
     SUBDIR += py-waitress
     SUBDIR += py-webargs
     SUBDIR += py-webassets
diff --git a/www/py-wagtail-airtable/Makefile b/www/py-wagtail-airtable/Makefile
new file mode 100644
index 000000000000..dc3ec79ac7ed
--- /dev/null
+++ b/www/py-wagtail-airtable/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	wagtail-airtable
+PORTVERSION=	0.5.1
+DISTVERSIONPREFIX=	v
+CATEGORIES=	www python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Sync data between Wagtail and Airtable
+WWW=		https://github.com/wagtail/wagtail-airtable
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.8:devel/py-poetry-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}airtable-python-wrapper>=0.13.0:devel/py-airtable-python-wrapper@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django32>=3.2:www/py-django32@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}djangorestframework>=3.11.0,1:www/py-djangorestframework@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wagtail>=4.1:www/py-wagtail@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	wagtail
+
+.include <bsd.port.mk>
diff --git a/www/py-wagtail-airtable/distinfo b/www/py-wagtail-airtable/distinfo
new file mode 100644
index 000000000000..2b8daab823c1
--- /dev/null
+++ b/www/py-wagtail-airtable/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1677770951
+SHA256 (wagtail-wagtail-airtable-v0.5.1_GH0.tar.gz) = df1cd5d41a628e54b8f72f485a4f8163812f46912820e1a7b1c9b63bb10cc911
+SIZE (wagtail-wagtail-airtable-v0.5.1_GH0.tar.gz) = 1198289
diff --git a/www/py-wagtail-airtable/files/patch-pyproject.toml b/www/py-wagtail-airtable/files/patch-pyproject.toml
new file mode 100644
index 000000000000..b0374da930c7
--- /dev/null
+++ b/www/py-wagtail-airtable/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2023-02-21 17:47:24 UTC
++++ pyproject.toml
+@@ -33,7 +33,7 @@ packages = [
+ [tool.poetry.dependencies]
+ python = ">=3.7,<4.0"
+ wagtail = ">=4.1"
+-airtable-python-wrapper = "~0.13.0"
++airtable-python-wrapper = ">=0.13.0"
+ djangorestframework = ">=3.11.0"
+ django = ">=3.2"
+ 
diff --git a/www/py-wagtail-airtable/pkg-descr b/www/py-wagtail-airtable/pkg-descr
new file mode 100644
index 000000000000..ecf252249656
--- /dev/null
+++ b/www/py-wagtail-airtable/pkg-descr
@@ -0,0 +1,2 @@
+Wagtail/Airtable is an extension for Wagtail allowing content to be transferred
+between Airtable sheets and your Wagtail/Django models.