python-wheel: Update to 0.40.0

This commit is contained in:
Christoph Reiter
2023-03-15 20:41:25 +01:00
parent 2c062fe3ac
commit 263c3d3af1

View File

@@ -2,18 +2,31 @@
_realname=wheel
pkgname="python-${_realname}"
pkgver=0.38.4
pkgrel=3
pkgver=0.40.0
pkgrel=1
pkgdesc="A built-package format for Python"
arch=('any')
url="https://pypi.python.org/pypi/wheel"
license=('spdx:MIT')
depends=("python")
makedepends=("python-installer")
source=("https://pypi.debian.net/wheel/wheel-${pkgver}-py3-none-any.whl")
sha256sums=('b60533f3f5d530e971d6737ca6d58681ee434818fab630c83a734bb10c083ce8')
makedepends=(
"python-flit-core"
"python-installer"
"python-build"
)
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('cd1196f3faee2b31968d626e1731c94f99cbdb67cf5a46e4f5656cbee7738873')
build() {
cd "${_realname}-${pkgver}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
python -m installer --destdir="${pkgdir}" *.whl
install -Dm644 *.dist-info/LICENSE.txt "${pkgdir}/usr/share/licenses/python-${_realname}/COPYING"
cd "${_realname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}