description='Setuptools extension for CalVer package versions'
url='https://github.com/di/calver'

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

makedepends=(python-setuptools python-wheel)

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

version=2022.6.26
release=2

source=(https://pypi.org/packages/source/c/calver/calver-$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 
}
