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

Felix Yan felixonmars at archlinux.org
Thu Nov 12 19:20:31 UTC 2020


    Date: Thursday, November 12, 2020 @ 19:20:31
  Author: felixonmars
Revision: 753434

archrelease: copy trunk to community-staging-any

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

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

Copied: python-braintree/repos/community-staging-any/PKGBUILD (from rev 753432, python-braintree/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 19:20:31 UTC (rev 753434)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-braintree
+pkgver=4.5.0
+pkgrel=2
+pkgdesc="Braintree Python Library"
+arch=('any')
+url="https://www.braintreepayments.com/docs/python"
+license=('MIT')
+depends=('python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-nose')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/braintree/braintree_python/archive/$pkgver.tar.gz")
+sha512sums=('ecc5e3e1abf4484ed404503f62f191b1490db6ac744f9659af666503781a6562aec18bed4b77763125a33e3ff8fc6582d39d557c1b43ff857f2d5b8fd2c7c796')
+
+build() {
+  cd braintree_python-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd braintree_python-$pkgver
+  nosetests3 tests/unit
+}
+
+package() {
+  cd braintree_python-$pkgver
+  python setup.py install -O1 --root="$pkgdir"
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list