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

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:55:59 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:55:59
  Author: foutrelis
Revision: 1059550

archrelease: copy trunk to community-staging-any

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

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

Copied: python-testfixtures/repos/community-staging-any/PKGBUILD (from rev 1059549, python-testfixtures/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:55:59 UTC (rev 1059550)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-testfixtures
+pkgver=6.18.3
+pkgrel=2
+pkgdesc="A collection of helpers and mock objects that are useful when writing unit tests or doc tests"
+arch=('any')
+license=('MIT')
+url="https://github.com/Simplistix/testfixtures"
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-zope-component' 'python-sybil'
+              'python-pytest-django' 'python-django' 'python-twisted')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Simplistix/testfixtures/archive/$pkgver.tar.gz")
+sha512sums=('1fdd3e8a9dc39be00ebb707c4febb30f4975e7c2c83d6edead14f180bb6171b8cd2625acf0f6285c1ecf5ea56ee3c1e40317a9c47fa0b01fd525303816ced69c')
+
+build() {
+  cd "$srcdir"/testfixtures-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/testfixtures-$pkgver
+  python setup.py pytest --addopts "--ignore=build"
+}
+
+package() {
+  cd testfixtures-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}



More information about the arch-commits mailing list