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

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:52:25 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:52:25
  Author: felixonmars
Revision: 1059441

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 1059439, python-re-assert/trunk/PKGBUILD)

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

Copied: python-re-assert/repos/community-staging-any/PKGBUILD (from rev 1059439, python-re-assert/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:52:25 UTC (rev 1059441)
@@ -0,0 +1,33 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=python-re-assert
+_name=${pkgname#python-}
+pkgver=1.1.0
+pkgrel=3
+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