pkgname=python-wheel
_name=${pkgname#python-}
pkgver=0.46.1
pkgrel=1
pkgdesc="A built-package format for Python"
arch=(any)
homepage="https://pypi.python.org/pypi/wheel"
license=('MIT')
sources=("${_name}-${pkgver}.tar.gz")
urls=("https://pypi.org/packages/source/w/${_name}/${sources[0]}")
md5sums=("65e09ee84af36821e3b1e9564aa91bd5")

src_prepare() {
  tar -xf ${distdir}/${sources[0]} --strip-components=1
}

src_build() {
  pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
}

src_install() {
  pip3 install --no-deps --no-warn-script-location --no-index --no-cache-dir --no-user --force-reinstall --root ${pkgdir} --find-links dist ${_name}
}
