1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/community/py3-hatch-nodejs-version/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
927 B
Text

# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
pkgname=py3-hatch-nodejs-version
pkgver=0.3.1
pkgrel=1
pkgdesc="Hatch plugin for versioning from a Node.js package.json"
url="https://github.com/agoose77/hatch-nodejs-version"
arch="noarch"
license="MIT"
depends="py3-hatchling"
makedepends="py3-gpep517 py3-installer"
checkdepends="py3-pytest"
source="https://github.com/agoose77/hatch-nodejs-version/archive/v$pkgver/python-hatch-nodejs-version-$pkgver.tar.gz"
builddir="$srcdir/hatch-nodejs-version-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest
}
package() {
python3 -m installer --destdir="$pkgdir" dist/*.whl
}
sha512sums="
98a0ecc4a4271073f4ae7c09d631cf29a2e7a3a52beed82ad7afddcbeb764993352224faf144eade37c48eb79106ad69424837197acb8ab755b18a62b4cae072 python-hatch-nodejs-version-0.3.1.tar.gz
"