# Maintainer: Patrycja Rosa pkgname=py3-pdm-backend pkgver=2.1.5 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" subpackages="$pkgname-pyc" 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 find "$pkgdir" -type f -name '*.orig' -delete } sha512sums=" 867c36a9381f4e6a2c81f2d987ce33953eaf78a43b4fa03df54f78b6c9cfe645a1ae4f3dd1a514e0d14208ad7fc75af954fa46be3c8b4b54c7ac7e16eead5aaf py3-pdm-backend-2.1.5.tar.gz f10a272dffef1c512992ad4a6343b58f3d1caddbe6321e7a8f30a45c8cc4c77d3881696a025531fe6c0f059d8519284464b9a5f2d0d5c6ee91355f568385ed44 unvendor.patch "