[arch-commits] Commit in python-braintree/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Sat Jun 30 18:35:46 UTC 2018
Date: Saturday, June 30, 2018 @ 18:35:45
Author: felixonmars
Revision: 349034
archrelease: copy trunk to community-staging-any
Added:
python-braintree/repos/community-staging-any/
python-braintree/repos/community-staging-any/PKGBUILD
(from rev 349033, python-braintree/trunk/PKGBUILD)
----------+
PKGBUILD | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
Copied: python-braintree/repos/community-staging-any/PKGBUILD (from rev 349033, python-braintree/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-06-30 18:35:45 UTC (rev 349034)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-braintree
+pkgname=(python-braintree python2-braintree)
+pkgver=3.46.0
+pkgrel=2
+pkgdesc="Braintree Python Library"
+arch=('any')
+url="https://www.braintreepayments.com/docs/python"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests')
+checkdepends=('python-nose' 'python2-nose' 'python2-mock')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/braintree/braintree_python/archive/$pkgver.tar.gz")
+sha512sums=('eb2076f71858fb801c4ea5202cc7de8f3db1752c996367b62ade9b668636e88f34833b6abf18624287a797c330d37bc354bf408bd7d92cc7d478c80776de4e90')
+
+prepare() {
+ cp -a braintree_python-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/braintree_python-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/braintree_python-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/braintree_python-$pkgver
+ nosetests3 tests/unit
+
+ cd "$srcdir"/braintree_python-$pkgver-py2
+ nosetests2 tests/unit
+}
+
+package_python-braintree() {
+ depends=('python-requests')
+
+ cd braintree_python-$pkgver
+ python setup.py install -O1 --root="$pkgdir"
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-braintree() {
+ depends=('python2-requests')
+
+ cd braintree_python-$pkgver-py2
+ python2 setup.py install -O1 --root="$pkgdir"
+
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list