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

Felix Yan felixonmars at archlinux.org
Mon Nov 4 09:52:15 UTC 2019


    Date: Monday, November 4, 2019 @ 09:52:15
  Author: felixonmars
Revision: 523969

archrelease: copy trunk to community-staging-any

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

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

Copied: python-braintree/repos/community-staging-any/PKGBUILD (from rev 523968, python-braintree/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 09:52:15 UTC (rev 523969)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-braintree
+pkgver=3.57.1
+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=('12ab4854360510e74649d2c4a18a0e85a811af6e8702230ef73cc68912f610441382de3037ef2ca9c43f0fdb41ac84b6ffa6f6184e6d2d619a4f32aa92ca18eb')
+
+prepare() {
+  sed -i -e 's/import cgi/import urllib.parse/' -e 's/cgi.parse_qs/urllib.parse.parse_qs/' braintree_python-$pkgver/braintree/transparent_redirect_gateway.py
+}
+
+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