aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-08-27 10:10:45 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-08-27 10:10:45 +0000
commitc44a4ddcecd70cce92b9fc08a8dd708669182860 (patch)
tree99641aedb2d248a565ab418cdd06a5a4f944d697
parent1abfd92c3bcef7c0918390d62729f18b428e1046 (diff)
www/py-dropbox: Add py-dropbox 11.33.0
-rw-r--r--www/Makefile1
-rw-r--r--www/py-dropbox/Makefile22
-rw-r--r--www/py-dropbox/distinfo3
-rw-r--r--www/py-dropbox/files/patch-setup.py12
-rw-r--r--www/py-dropbox/pkg-descr4
5 files changed, 42 insertions, 0 deletions
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