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

Felix Yan felixonmars at gemini.archlinux.org
Fri Dec 3 00:28:33 UTC 2021


    Date: Friday, December 3, 2021 @ 00:28:33
  Author: felixonmars
Revision: 1063786

archrelease: copy trunk to community-staging-any

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

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

Copied: python-braintree/repos/community-staging-any/PKGBUILD (from rev 1063784, python-braintree/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-03 00:28:33 UTC (rev 1063786)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-braintree
+pkgver=4.13.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=('123af689669695dab7709d17e620b98376a61d99893a233ab2005eee47bf225daacefa97059e75d927008592e36aad4a0a026e3d800012a0840544e95e6ceca3')
+
+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