git: c44a4ddcecd7 - main - www/py-dropbox: Add py-dropbox 11.33.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 27 Aug 2022 10:30:53 UTC
The branch main has been updated by sunpoet:

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

commit c44a4ddcecd70cce92b9fc08a8dd708669182860
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-27 10:10:45 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-27 10:10:45 +0000

    www/py-dropbox: Add py-dropbox 11.33.0
    
    The offical Dropbox SDK for Python.
    
    WWW: https://dropbox-sdk-python.readthedocs.io/en/latest/
    WWW: https://github.com/dropbox/dropbox-sdk-python
---
 www/Makefile                        |  1 +
 www/py-dropbox/Makefile             | 22 ++++++++++++++++++++++
 www/py-dropbox/distinfo             |  3 +++
 www/py-dropbox/files/patch-setup.py | 12 ++++++++++++
 www/py-dropbox/pkg-descr            |  4 ++++
 5 files changed, 42 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 8f24a3c42dc0..de8b4e482248 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1572,6 +1572,7 @@
     SUBDIR += py-djangorestframework-xml
     SUBDIR += py-draftjs-exporter
     SUBDIR += py-drf-yasg
+    SUBDIR += py-dropbox
     SUBDIR += py-dtflickr
     SUBDIR += py-enmerkar
     SUBDIR += py-fake-useragent
diff --git a/www/py-dropbox/Makefile b/www/py-dropbox/Makefile
new file mode 100644
index 000000000000..0b6152ed3602
--- /dev/null
+++ b/www/py-dropbox/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	dropbox
+PORTVERSION=	11.33.0
+CATEGORIES=	www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Official Dropbox API Client
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}stone>=2.0:devel/py-stone@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-dropbox/distinfo b/www/py-dropbox/distinfo
new file mode 100644
index 000000000000..6f75e5410445
--- /dev/null
+++ b/www/py-dropbox/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660576704
+SHA256 (dropbox-11.33.0.tar.gz) = 7c638b521169a460de38b9eaeb204fe918874f72d6c3eed005d064b6f37da9c1
+SIZE (dropbox-11.33.0.tar.gz) = 580615
diff --git a/www/py-dropbox/files/patch-setup.py b/www/py-dropbox/files/patch-setup.py
new file mode 100644
index 000000000000..f7d8d3b578a1
--- /dev/null
+++ b/www/py-dropbox/files/patch-setup.py
@@ -0,0 +1,12 @@
+--- setup.py.orig	2022-07-13 18:09:08 UTC
++++ setup.py
+@@ -31,9 +31,6 @@ install_reqs = [
+ ]
+ 
+ setup_requires = [
+-    # Pin pytest-runner to 5.2.0, since 5.3.0 uses `find_namespaces` directive, not supported in
+-    # Python 2.7
+-    'pytest-runner == 5.2.0',
+ ]
+ 
+ # WARNING: This imposes limitations on test/requirements.txt such that the
diff --git a/www/py-dropbox/pkg-descr b/www/py-dropbox/pkg-descr
new file mode 100644
index 000000000000..4df2a51f6cb2
--- /dev/null
+++ b/www/py-dropbox/pkg-descr
@@ -0,0 +1,4 @@
+The offical Dropbox SDK for Python.
+
+WWW: https://dropbox-sdk-python.readthedocs.io/en/latest/
+WWW: https://github.com/dropbox/dropbox-sdk-python