1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/py3-pdm-backend/APKBUILD
2023-02-18 04:21:47 +00:00

49 lines
1.3 KiB
Text

# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-pdm-backend
pkgver=2.0.2
pkgrel=0
pkgdesc="Build backend used by PDM that supports latest packaging standards"
url="https://pdm-backend.fming.dev/"
arch="noarch"
license="MIT"
depends="
py3-cerberus
py3-editables
py3-license-expression
py3-packaging
py3-pyproject-metadata
py3-tomli
py3-tomli-w
py3-validate-pyproject
python3
"
makedepends="py3-gpep517 py3-installer"
checkdepends="py3-pytest py3-setuptools python3-dev"
source="https://github.com/pdm-project/pdm-backend/archive/refs/tags/$pkgver/py3-pdm-backend-$pkgver.tar.gz
unvendor.patch
"
builddir="$srcdir/pdm-backend-$pkgver"
build() {
PDM_BUILD_SCM_VERSION=$pkgver \
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --system-site-packages testenv
testenv/bin/python3 -m installer dist/*.whl
testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
rm -rf "$pkgdir"/usr/lib/python*/site-packages/pdm/backend/_vendor
}
sha512sums="
d48d64a9d395eab23eb953444e5c483eeb533fbd52a03679725e5e360e13e55d035754e27ef387df9fca1eb5972520c61fa8b37268c2af6a833b41b9f5313b15 py3-pdm-backend-2.0.2.tar.gz
f7d3ba14f0ced408913da9bafe1781ba44dc0f40b2d080d3d13517b70115831cee8caf068b3de0b19591599c4b705320212fd727c63542eef461faf6b34b3afb unvendor.patch
"