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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:22:51 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:22:51
  Author: felixonmars
Revision: 1058149

archrelease: copy trunk to community-staging-any

Added:
  python-pyhamcrest/repos/community-staging-any/
  python-pyhamcrest/repos/community-staging-any/PKGBUILD
    (from rev 1058145, python-pyhamcrest/trunk/PKGBUILD)

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

Copied: python-pyhamcrest/repos/community-staging-any/PKGBUILD (from rev 1058145, python-pyhamcrest/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:22:51 UTC (rev 1058149)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pyhamcrest
+pkgver=1.10.1
+pkgrel=2
+pkgdesc="Hamcrest framework for matcher objects"
+arch=('any')
+license=('BSD')
+url="https://github.com/hamcrest/PyHamcrest"
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-mock')
+source=("https://github.com/hamcrest/PyHamcrest/archive/V$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('f7e79f7d26c4c6add042052e451898bbf5adf21b05a234cc62bce890d68f5997693b042a9daf136f7026040a8ab7bf28b829288417b947973dcb959bf613a37b')
+
+build() {
+  cd PyHamcrest-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd PyHamcrest-$pkgver
+  PYTHONPATH="$PWD/build/lib" pytest
+}
+
+package() {
+  cd PyHamcrest-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list