[arch-commits] Commit in python-fxa/trunk (PKGBUILD)
Balló György
bgyorgy at archlinux.org
Thu Apr 15 21:59:05 UTC 2021
Date: Thursday, April 15, 2021 @ 21:59:04
Author: bgyorgy
Revision: 919235
upgpkg: python-fxa 0.7.7-3: Fix dependencies, run tests
Modified:
python-fxa/trunk/PKGBUILD
----------+
PKGBUILD | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-04-15 21:53:25 UTC (rev 919234)
+++ PKGBUILD 2021-04-15 21:59:04 UTC (rev 919235)
@@ -4,21 +4,27 @@
_pkgname=PyFxA
pkgname=python-fxa
pkgver=0.7.7
-pkgrel=2
-pkgdesc="Python library for interacting with the Firefox Accounts ecosystem"
-arch=(any)
-url="https://github.com/mozilla/PyFxA"
-license=(MPL2)
-depends=(python-browserid python-cryptography python-hawkauthlib)
-source=(https://github.com/mozilla/$_pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+pkgrel=3
+pkgdesc='Python library for interacting with the Firefox Accounts ecosystem'
+arch=('any')
+url='https://github.com/mozilla/PyFxA'
+license=('MPL2')
+depends=('python-browserid' 'python-cryptography' 'python-hawkauthlib' 'python-pyjwt' 'python-requests' 'python-six')
+checkdepends=('python-grequests' 'python-mock' 'python-pyotp' 'python-pytest-cov' 'python-pytest-flake8' 'python-pytest-runner' 'python-responses')
+source=("https://github.com/mozilla/$_pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('d5b5afdafb6b42344d49e4e4df0582758df54e00b8d0fa3cbc29433410aa9a6f')
build() {
cd $_pkgname-$pkgver
- python3 setup.py build
+ python setup.py build
}
+check() {
+ cd $_pkgname-$pkgver
+ pytest || echo 'Some tests failed'
+}
+
package() {
cd $_pkgname-$pkgver
- python3 setup.py install --root="$pkgdir" --optimize=1
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
More information about the arch-commits
mailing list