description="Simple but powerful config file reader and writer for Python3"
url="https://github.com/DiffSK/configobj"

packager="spiky <spiky@nutyx.org>"
contributors="Dania,Tnut"

makedepends=(python-setuptools python-six)

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

version=5.0.8
release=5

source=(https://github.com/DiffSK/configobj/archive/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 
}
