summaryrefslogtreecommitdiff
path: root/testing/py3-forbiddenfruit/APKBUILD
blob: f0654e4461e37868cc650799db6aad43f9d31567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
pkgname=py3-forbiddenfruit
_pkgname=forbiddenfruit
pkgver=0.1.4
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 py3-setuptools"
source="https://files.pythonhosted.org/packages/source/f/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
options="!check" # fail with 3.11

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="
88f8751a9ca1d475eb74114787a7aeda02973e9bc2c4bbb08de8a4d6fe05c6fb82db093aace8f718caaaeb8b06c89112e5f418b8ee4d903cc6183ddfa2cdb087  forbiddenfruit-0.1.4.tar.gz
"