aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-03-28 18:09:53 +0100
committerRasmus Thomsen <oss@cogitri.dev>2020-05-09 17:24:23 +0000
commit59c863da1caa90fc459ff6536f41bb54539eb7a3 (patch)
tree6167ea6db055b1f79c693e71f54ff5a7b6972199 /testing
parentefef7e7ef070ab5b5b981daf9eb97c66ba5a8639 (diff)
downloadaports-59c863da1caa90fc459ff6536f41bb54539eb7a3.tar.bz2
aports-59c863da1caa90fc459ff6536f41bb54539eb7a3.tar.xz
testing/py3-testfixtures: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/py3-testfixtures/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/py3-testfixtures/APKBUILD b/testing/py3-testfixtures/APKBUILD
new file mode 100644
index 0000000000..56ca282093
--- /dev/null
+++ b/testing/py3-testfixtures/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=py3-testfixtures
+pkgver=6.14.1
+pkgrel=0
+pkgdesc="A collection of helpers and mock objects for unit tests and doc tests"
+url="https://github.com/Simplistix/testfixtures"
+arch="noarch"
+license="MIT"
+depends="python3"
+makedepends="py3-setuptools py3-sphinx"
+checkdepends="py3-pytest py3-sybil"
+source="https://pypi.python.org/packages/source/t/testfixtures/testfixtures-$pkgver.tar.gz"
+options="!check" # Broken tests https://github.com/Simplistix/testfixtures/issues/134
+builddir="$srcdir/testfixtures-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ PYTHONPATH="$PWD/build/lib" pytest
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="0da31d5e382984c22ada846c07570d4a179ba819005dd29891e551b99190fabaaf17174456f7ed4864e9c4aa25f7d5d8b86aa123b4628328610d6930c9c5d6bd testfixtures-6.14.1.tar.gz"