description='Python with the SmartyPants'
url='https://bitbucket.org/livibetter/smartypants.py'

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

makedepends=(python-setuptools python-wheel)

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

version=2.0.1
release=8
PKGMK_KEEP_SOURCES="no"

source=(https://github.com/leohemsted/${_name}.py/archive/v$version.tar.gz)

prepare() {
mv smartypants.py-$version ${_name}-$version
}

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 
}
