python-six: port to build/installer

This commit is contained in:
Christoph Reiter 2022-12-17 15:03:46 +01:00
parent b455c1c9b9
commit 165addfb73

View File

@ -3,22 +3,29 @@
pkgbase=python-six
pkgname=('python-six')
pkgver=1.16.0
pkgrel=1
pkgrel=2
provides=("python3-six")
replaces=("python3-six")
conflicts=("python3-six")
pkgdesc="Python compatibility utilities"
arch=('any')
url="https://pypi.python.org/pypi/six/"
license=('MIT')
license=('spdx:MIT')
depends=('python')
makedepends=('python-setuptools')
makedepends=(
"python-setuptools"
"python-wheel"
"python-build"
"python-installer"
)
checkdepends=('python-pytest')
source=("https://pypi.io/packages/source/s/six/six-${pkgver}.tar.gz")
sha256sums=('1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926')
build() {
cd "${srcdir}"/six-${pkgver}
/usr/bin/python setup.py build
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
@ -28,6 +35,7 @@ check() {
package() {
cd six-${pkgver}
/usr/bin/python setup.py install --root "${pkgdir}" --optimize=1 --skip-build
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}