git: b0b339bf1c28 - main - devel/py-gcsfs: Add py-gcsfs 2023.9.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 22 Sep 2023 23:34:47 UTC
The branch main has been updated by sunpoet:

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

commit b0b339bf1c28135f19995fc76aaf3b94fe32b16e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-09-22 23:22:22 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-09-22 23:22:22 +0000

    devel/py-gcsfs: Add py-gcsfs 2023.9.1
    
    Pythonic file-system for Google Cloud Storage
---
 devel/Makefile                              |  1 +
 devel/py-gcsfs/Makefile                     | 28 ++++++++++++++++++++++++++++
 devel/py-gcsfs/distinfo                     |  3 +++
 devel/py-gcsfs/files/patch-requirements.txt | 10 ++++++++++
 devel/py-gcsfs/pkg-descr                    |  1 +
 5 files changed, 43 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 5f382ad64d3b..d578bd9e4a24 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4729,6 +4729,7 @@
     SUBDIR += py-game_sdl2
     SUBDIR += py-gapic-generator
     SUBDIR += py-gast
+    SUBDIR += py-gcsfs
     SUBDIR += py-gelidum
     SUBDIR += py-genson
     SUBDIR += py-genty
diff --git a/devel/py-gcsfs/Makefile b/devel/py-gcsfs/Makefile
new file mode 100644
index 000000000000..ccd18459ab60
--- /dev/null
+++ b/devel/py-gcsfs/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	gcsfs
+PORTVERSION=	2023.9.1
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Convenient Filesystem interface over GCS
+WWW=		https://gcsfs.readthedocs.io/en/latest/ \
+		https://github.com/fsspec/gcsfs
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aiohttp>=0:www/py-aiohttp@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}decorator>=4.1.2:devel/py-decorator@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}fsspec>=2023.9.1:devel/py-fsspec@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}google-auth-oauthlib>=0:security/py-google-auth-oauthlib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}google-auth>=1.2:security/py-google-auth@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}google-cloud-storage>=0:www/py-google-cloud-storage@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-gcsfs/distinfo b/devel/py-gcsfs/distinfo
new file mode 100644
index 000000000000..7890d26dc9f9
--- /dev/null
+++ b/devel/py-gcsfs/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1695357779
+SHA256 (gcsfs-2023.9.1.tar.gz) = 47698bba0468896bfb33749552fe459fa745069119d7c2605a53bf4f3a1f09ac
+SIZE (gcsfs-2023.9.1.tar.gz) = 77042
diff --git a/devel/py-gcsfs/files/patch-requirements.txt b/devel/py-gcsfs/files/patch-requirements.txt
new file mode 100644
index 000000000000..ae31f3438af3
--- /dev/null
+++ b/devel/py-gcsfs/files/patch-requirements.txt
@@ -0,0 +1,10 @@
+--- requirements.txt.orig	2023-09-15 20:26:32 UTC
++++ requirements.txt
+@@ -1,6 +1,6 @@
+ aiohttp!=4.0.0a0, !=4.0.0a1
+ decorator>4.1.2
+-fsspec==2023.9.1
++fsspec>=2023.9.1
+ google-auth>=1.2
+ google-auth-oauthlib
+ google-cloud-storage
diff --git a/devel/py-gcsfs/pkg-descr b/devel/py-gcsfs/pkg-descr
new file mode 100644
index 000000000000..781572993acc
--- /dev/null
+++ b/devel/py-gcsfs/pkg-descr
@@ -0,0 +1 @@
+Pythonic file-system for Google Cloud Storage