[arch-commits] Commit in python-re-assert/repos (community-any community-any/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Fri Nov 20 01:15:34 UTC 2020
Date: Friday, November 20, 2020 @ 01:15:32
Author: foutrelis
Revision: 757866
archrelease: copy trunk to community-any
Added:
python-re-assert/repos/community-any/
python-re-assert/repos/community-any/PKGBUILD
(from rev 757865, python-re-assert/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-re-assert/repos/community-any/PKGBUILD (from rev 757865, python-re-assert/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-11-20 01:15:32 UTC (rev 757866)
@@ -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