Date: Thursday, April 6, 2023 @ 01:48:38
Author: felixonmars
Revision: 1438029
archrelease: copy trunk to community-staging-any
Added:
python-testfixtures/repos/community-staging-any/
python-testfixtures/repos/community-staging-any/PKGBUILD
(from rev 1438027, python-testfixtures/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-testfixtures/repos/community-staging-any/PKGBUILD (from rev
1438027, python-testfixtures/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 01:48:38 UTC (rev 1438029)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-testfixtures
+pkgver=7.1.0
+_commit=3f5500aa9b4fabb138a1dc0e132369df61403882
+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=('git' 'python-setuptools')
+checkdepends=('python-pytest' 'python-zope-component' 'python-sybil'
+ 'python-pytest-django' 'python-django' 'python-twisted')
+source=("git+https://github.com/Simplistix/testfixtures.git#commit=$_commit")
+sha512sums=('SKIP')
+
+build() {
+ cd testfixtures
+ python setup.py build
+}
+
+check() {
+ cd testfixtures
+ PYTHONPATH="$PWD" pytest --ignore=build
+}
+
+package() {
+ cd testfixtures
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 docs/license.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
+}