[arch-commits] Commit in python-dropbox/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 18:35:12 UTC 2020


    Date: Thursday, November 12, 2020 @ 18:35:12
  Author: foutrelis
Revision: 753128

archrelease: copy trunk to community-staging-any

Added:
  python-dropbox/repos/community-staging-any/
  python-dropbox/repos/community-staging-any/PKGBUILD
    (from rev 753127, python-dropbox/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: python-dropbox/repos/community-staging-any/PKGBUILD (from rev 753127, python-dropbox/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 18:35:12 UTC (rev 753128)
@@ -0,0 +1,37 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Andrey Mivrenik <gim at fastmail dot fm>
+# Contributor: Tim Diels <tim at timdiels.be>
+
+pkgname=python-dropbox
+_pkgname=dropbox-sdk-python
+pkgver=10.5.0
+pkgrel=2
+pkgdesc="Python SDK for Dropbox Core APIs"
+url="https://github.com/dropbox/dropbox-sdk-python"
+arch=('any')
+license=('MIT')
+depends=(python python-urllib3 python-requests)
+makedepends=(python-setuptools python-pytest-runner)
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/dropbox/$_pkgname/archive/v$pkgver.tar.gz")
+sha512sums=('a0ef47f4c51869eb8c3fc8e9b6f1502352d6a1a408bffcd6d42f4b3187914c051140c5e40946b250442543b4fe90a9c87032ed07cce165cc4253d11ad2df4472')
+
+build() {
+  cd "$srcdir/$_pkgname-$pkgver"
+
+  python setup.py build
+}
+
+# requires API token in $DROPBOX_TOKEN
+#check() {
+#  cd "$srcdir/$_pkgname-$pkgver"
+#
+#  python setup.py pytest --addopts "-k 'not TestDropboxTeam'"
+#  python2 setup.py pytest --addopts "-k 'not TestDropboxTeam'"
+#}
+
+package() {
+  cd "$srcdir/$_pkgname-$pkgver"
+
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}


More information about the arch-commits mailing list