Files
MSYS2-packages/python-six/PKGBUILD
Christoph Reiter 0566eff63a Remove makedepends on python-wheel everywhere
setuptools no longer needs it for building wheels since v70.1.0
2024-08-16 14:03:27 +02:00

45 lines
960 B
Bash

# Maintainer: atom2013 <atom.long@hotmail.com>
pkgbase=python-six
pkgname=('python-six')
pkgver=1.16.0
pkgrel=5
provides=("python3-six")
replaces=("python3-six")
conflicts=("python3-six")
pkgdesc="Python compatibility utilities"
arch=('any')
url="https://pypi.python.org/pypi/six/"
msys2_references=(
"anitya: 4027"
"pypi:six"
)
license=('spdx:MIT')
depends=('python')
makedepends=(
"python-setuptools"
"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
}