From 903322ee5fcce69393dc7bcc0d49ac1413586a02 Mon Sep 17 00:00:00 2001 From: Dmitry Romanenko Date: Mon, 3 Jun 2019 23:51:10 -0400 Subject: testing/py3-forbiddenfruit: new aport --- testing/py3-forbiddenfruit/APKBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 testing/py3-forbiddenfruit/APKBUILD (limited to 'testing') diff --git a/testing/py3-forbiddenfruit/APKBUILD b/testing/py3-forbiddenfruit/APKBUILD new file mode 100644 index 0000000000..2432a8aff8 --- /dev/null +++ b/testing/py3-forbiddenfruit/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Dmitry Romanenko +# Maintainer: Dmitry Romanenko +pkgname=py3-forbiddenfruit +_pkgname=forbiddenfruit +pkgver=0.1.3 +pkgrel=0 +pkgdesc="Patch built-in python objects" +url="https://github.com/clarete/forbiddenfruit" +arch="all" +license="GPL-3.0-or-later OR MIT" +depends="python3" +checkdepends="py3-nose py3-coverage" +makedepends="python3-dev" +source="https://files.pythonhosted.org/packages/source/f/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +build() { + python3 setup.py build +} + +check() { + find ./build -name '*.so' -exec cp {} tests/unit \; + nosetests --stop --with-coverage --cover-package=$_pkgname --cover-branches --verbosity=2 -s tests/unit +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="abd3e95a03f60bbe2c522cc77487fcbafce1325e1537bcfdaaa347db0eb283adf3c97c08b5cb05e37a3ee10f5bff160bc8c96e61f1b5aa64a55f58dd1563d25b forbiddenfruit-0.1.3.tar.gz" -- cgit v1.2.3