# Description: The build backend used by PDM that supports latest packaging standards
# URL: https://github.com/pdm-project/pdm-backend
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: python3-wheel

name=python3-pdm-backend
version=2.4.9
release=1
source=(https://github.com/pdm-project/pdm-backend/archive/$version/$name-$version.tar.gz)

build() {
  cd pdm-backend-$version

  PDM_BUILD_SCM_VERSION=$version /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
  /usr/bin/python3 -m installer --destdir=$PKG dist/*.whl
}
