mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 19:36:48 +02:00
this is only a partial rebuild, including stuff that i built on my personal machine with python 3.12.2; might fail with 3.12.3
34 lines
1 KiB
Text
34 lines
1 KiB
Text
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
|
|
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
|
|
pkgname=py3-forbiddenfruit
|
|
_pkgname=forbiddenfruit
|
|
pkgver=0.1.4
|
|
pkgrel=2
|
|
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"
|
|
subpackages="$pkgname-pyc"
|
|
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 --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
88f8751a9ca1d475eb74114787a7aeda02973e9bc2c4bbb08de8a4d6fe05c6fb82db093aace8f718caaaeb8b06c89112e5f418b8ee4d903cc6183ddfa2cdb087 forbiddenfruit-0.1.4.tar.gz
|
|
"
|