[arch-commits] Commit in (4 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Nov 20 01:14:45 UTC 2020
Date: Friday, November 20, 2020 @ 01:14:44
Author: foutrelis
Revision: 757865
Add python-re-assert for python-aiohttp
Added:
python-re-assert/
python-re-assert/repos/
python-re-assert/trunk/
python-re-assert/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Added: python-re-assert/trunk/PKGBUILD
===================================================================
--- python-re-assert/trunk/PKGBUILD (rev 0)
+++ python-re-assert/trunk/PKGBUILD 2020-11-20 01:14:44 UTC (rev 757865)
@@ -0,0 +1,33 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=python-re-assert
+_name=${pkgname#python-}
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Provides a helper class to make assertions of regexes simpler"
+arch=('any')
+url="https://github.com/asottile/re-assert"
+license=('MIT')
+depends=('python' 'python-regex')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=($pkgname-$pkgver.tar.gz::https://github.com/asottile/re-assert/archive/v$pkgver.tar.gz)
+sha256sums=('01c4a849ed520923e4bab9afdf73b5f2698c4f92ad7f580ccb3f68ea79c69c0c')
+
+build() {
+ cd "$_name-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$_name-$pkgver"
+ pytest
+}
+
+package() {
+ cd "$_name-$pkgver"
+ python setup.py install --root="$pkgdir" -O1
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list