1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 11:45:18 +03:00
aports/community/py3-cppy/APKBUILD
psykose aa528d2a76 */*: unify gpep517 use to output to fd 3
outputting to 3 then redirecting all to stderr prevents clobbering of
wrapped build fds
2023-01-18 12:58:53 +01:00

32 lines
816 B
Text

# Contributor:
# Maintainer:
pkgname=py3-cppy
pkgver=1.2.1
pkgrel=1
pkgdesc="Collection of C++ headers for writing Python C extensions"
url="https://github.com/nucleic/cppy"
arch="noarch"
license="BSD-3-Clause"
makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel"
source="https://github.com/nucleic/cppy/archive/$pkgver/py3-cppy-$pkgver.tar.gz"
builddir="$srcdir/cppy-$pkgver"
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 tests/test_getting_include_dir.py
}
package() {
python3 -m installer -d "$pkgdir" \
dist/cppy*.whl
}
sha512sums="
f6493830a8a66f52fff7c592db9d255fd7178ba320faee6a96258f29b6f299ffeca83f001650390b05c1037eb1350b0bd4da701d77a7bcb1a1babc108b7b8f97 py3-cppy-1.2.1.tar.gz
"