description='A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir"'
url='https://pypi.org/project/platformdirs/'

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

makedepends=(python-setuptools python-wheel python-hatch-vcs)

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

version=4.2.2

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