description='Sphinx extension which outputs Devhelp document'
url='https://github.com/sphinx-doc/sphinxcontrib-devhelp'

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

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

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

version=2.0.0
_name=sphinxcontrib-devhelp
PKGMK_KEEP_SOURCES="no"

source=(https://github.com/sphinx-doc/sphinxcontrib-devhelp/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
}
