Files
MSYS2-packages/python-six/PKGBUILD
Christoph Reiter 28c89659b0 python 3.11 rebuilds
2023-02-14 09:48:24 +01:00

42 lines
926 B
Bash

# Maintainer: atom2013 <atom.long@hotmail.com>
pkgbase=python-six
pkgname=('python-six')
pkgver=1.16.0
pkgrel=3
provides=("python3-six")
replaces=("python3-six")
conflicts=("python3-six")
pkgdesc="Python compatibility utilities"
arch=('any')
url="https://pypi.python.org/pypi/six/"
license=('spdx:MIT')
depends=('python')
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}
python -m build --wheel --skip-dependency-check --no-isolation
}
check() {
cd "${srcdir}"/six-${pkgver}
py.test
}
package() {
cd six-${pkgver}
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}