Files
MSYS2-packages/python-attrs/PKGBUILD
T

37 lines
998 B
Bash

# Maintainer: J. Peter Mugaas <jpmugaas@suddenlink.net>
_realname=attrs
pkgbase=python-attrs
pkgname=("python-${_realname}")
pkgver=22.1.0
pkgrel=1
pkgdesc="Attributes without boilerplate."
arch=('any')
license=('spdx:MIT')
url="https://attrs.readthedocs.org/"
depends=('python')
makedepends=(
'python-setuptools'
'python-wheel'
'python-build'
'python-installer'
)
provides=("python3-${_realname}")
replaces=("python3-${_realname}")
conflicts=("python3-${_realname}")
source=("https://pypi.io/packages/source/a/attrs/attrs-$pkgver.tar.gz")
sha512sums=('447637bc82b31d565479e364869b996eaf7b67e526ad97f79ba1c27f287bbb25a2c40663e35437bc19037f605fac9322bd35f303f2769f0eb2ee673900551885')
build() {
cd "${srcdir}/${_realname}-${pkgver}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}