description='Handles managing your python package versions in scm metadata.'
url='https://github.com/pypa/setuptools_scm'

packager="spiky <spiky@nutyx.org>"
contributors=""

makedepends=(python-setuptools python-wheel python-flit-core
             python-typing_extensions python-packaging)

name=python-setuptools-scm
_name="setuptools_scm"
alias=(${_name})

version=8.1.0
release=2

source=(https://github.com/pypa/setuptools_scm/archive/refs/tags/v$version.tar.gz)

build() {

  cd ${_name}-$version

  pip3 wheel -w dist \
    --no-build-isolation \
    --no-deps $PWD
  pip3 install --no-index \
    --find-links dist \
    --no-cache-dir    \
    --no-user         \
    --root=$PKG       \
    ${_name}

 find $PKG -type d -name vendor -o -name tests |xargs rm -rf 
}
