description="Python package for providing Mozilla's CA Bundle"
url="https://pypi.python.org/pypi/certifi"

license="MPL2"

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

makedepends=(python-setuptools python-wheel)

name=python-certifi
_name=certifi
alias=(${_name})

version=2024.08.30

PKGMK_KEEP_SOURCES="no"

source=(https://github.com/certifi/python-certifi/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

install -Dm644 LICENSE $PKG/usr/share/licenses/$name/LICENSE
}
