diff options
author | Dmitry Romanenko <Dmitry@Romanenko.in> | 2019-06-03 23:51:10 -0400 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-05 21:35:35 +0300 |
commit | 903322ee5fcce69393dc7bcc0d49ac1413586a02 (patch) | |
tree | cc4bb083d5a50e3a43433d8617074294f5eacc06 /testing | |
parent | d4a7955cc72b9395779c20755df88f983763c43b (diff) | |
download | aports-903322ee5fcce69393dc7bcc0d49ac1413586a02.tar.bz2 aports-903322ee5fcce69393dc7bcc0d49ac1413586a02.tar.xz |
testing/py3-forbiddenfruit: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py3-forbiddenfruit/APKBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
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 <dmitry@romanenko.in> +# Maintainer: Dmitry Romanenko <dmitry@romanenko.in> +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" |