description='Sphinx extension which renders HTML help files'
url=https://github.com/sphinx-doc/sphinxcontrib-htmlhelp

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

makedepends=(python-setuptools python-wheel python-flit-core)

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

version=2.1.0
_name=sphinxcontrib-htmlhelp
PKGMK_KEEP_SOURCES="no"

source=(https://github.com/sphinx-doc/sphinxcontrib-htmlhelp/archive/refs/tags/$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
}
