git: e8d84866f041 - main - www/py-pydrive2: add new port

From: Dries Michiels <driesm_at_FreeBSD.org>
Date: Tue, 19 Nov 2024 20:35:41 UTC
The branch main has been updated by driesm:

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

commit e8d84866f041e4afd2cfc8513bd2ad145dc7fc54
Author:     Matthew Wener <matthew@wener.org>
AuthorDate: 2024-11-19 19:48:36 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2024-11-19 20:33:26 +0000

    www/py-pydrive2: add new port
    
    PyDrive2 is a wrapper library of google-api-python-client.
    
    PR:     282847
---
 www/Makefile              |  1 +
 www/py-pydrive2/Makefile  | 58 +++++++++++++++++++++++++++++++++++++++++++++++
 www/py-pydrive2/distinfo  |  3 +++
 www/py-pydrive2/pkg-descr |  2 ++
 4 files changed, 64 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 65289fe8c194..e9e6de25cc71 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1793,6 +1793,7 @@
     SUBDIR += py-proxy_tools
     SUBDIR += py-puppetboard
     SUBDIR += py-py-restclient
+    SUBDIR += py-pydrive2
     SUBDIR += py-pygsheets
     SUBDIR += py-pyjwt
     SUBDIR += py-pyjwt1
diff --git a/www/py-pydrive2/Makefile b/www/py-pydrive2/Makefile
new file mode 100644
index 000000000000..1c20a77f48f0
--- /dev/null
+++ b/www/py-pydrive2/Makefile
@@ -0,0 +1,58 @@
+PORTNAME=	PyDrive2
+PORTVERSION=	1.21.1
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	pydrive2-${PORTVERSION}
+
+MAINTAINER=	matthew@wener.org
+COMMENT=	PyDrive2 is a wrapper library of google-api-python-client
+WWW=		https://github.com/iterative/PyDrive2
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}google-api-python-client>=0:www/py-google-api-python-client@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}oauth2client>=0:security/py-oauth2client@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}openssl>=0:security/py-openssl@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+PORTDOCS=	*
+PORTEXAMPLES=	*
+
+OPTIONS_DEFINE=	DOCS EXAMPLES FSSPEC
+
+FSSPEC_DESC=		Filesystem interfaces for Python
+
+DOCS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}furo>0:textproc/py-furo@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR}
+FSSPEC_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}appdirs>=0:devel/py-appdirs@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}fsspec>=0:devel/py-fsspec@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}funcy>=0:devel/py-funcy@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}tqdm>=0:misc/py-tqdm@${PY_FLAVOR}
+
+pre-build-DOCS-on:
+	@(cd ${BUILD_WRKSRC}; \
+	${SETENVI} ${WRK_ENV} \
+	sphinx-build-${PYTHON_VER} \
+		-b html -d _build/doctress docs/ build/sphinx/html)
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}/build/sphinx/html && \
+		${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
+		"! -name .buildinfo -and ! -name .nojekyll -and ! -name objects.inv")
+
+do-install-EXAMPLES-on:
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
+
+.include <bsd.port.mk>
diff --git a/www/py-pydrive2/distinfo b/www/py-pydrive2/distinfo
new file mode 100644
index 000000000000..8914cf3b1aab
--- /dev/null
+++ b/www/py-pydrive2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1731946676
+SHA256 (pydrive2-1.21.1.tar.gz) = 70da0244a29a6922e28620a32e251ac6ab018449f1bb0485e9a39114a069dde0
+SIZE (pydrive2-1.21.1.tar.gz) = 63287
diff --git a/www/py-pydrive2/pkg-descr b/www/py-pydrive2/pkg-descr
new file mode 100644
index 000000000000..79ab42b0c25e
--- /dev/null
+++ b/www/py-pydrive2/pkg-descr
@@ -0,0 +1,2 @@
+PyDrive2 is a wrapper library of google-api-python-client
+that simplifies many common Google Drive API V2 tasks.