description='Hatch plugin for versioning with your preferred VCS'
url='https://github.com/ofek/hatch-vcs'

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

makedepends=(python-setuptools python-wheel python-hatchling)

name=python-hatch-vcs
_name="hatch-vcs"
alias=(${_name})

version=0.4.0

source=(https://github.com/ofek/hatch-vcs/archive/v$version/hatch-vcs-$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 
}
