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

Felix Yan felixonmars at archlinux.org
Fri Nov 20 01:20:35 UTC 2020


    Date: Friday, November 20, 2020 @ 01:20:35
  Author: felixonmars
Revision: 757869

archrelease: copy trunk to community-staging-any

Added:
  python-re-assert/repos/community-staging-any/
  python-re-assert/repos/community-staging-any/PKGBUILD
    (from rev 757868, python-re-assert/trunk/PKGBUILD)

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

Copied: python-re-assert/repos/community-staging-any/PKGBUILD (from rev 757868, python-re-assert/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-20 01:20:35 UTC (rev 757869)
@@ -0,0 +1,33 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=python-re-assert
+_name=${pkgname#python-}
+pkgver=1.1.0
+pkgrel=2
+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