jobextra/python-packaging/PKGBUILD-arch

30 lines
788 B
Plaintext
Raw Normal View History

2022-04-01 01:04:17 +02:00
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python-packaging
2023-05-17 09:58:40 +02:00
pkgver=23.1
pkgrel=1
2022-04-01 01:04:17 +02:00
pkgdesc="Core utilities for Python packages"
arch=('any')
url="https://github.com/pypa/packaging"
license=('Apache')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-flit-core')
2022-04-01 01:04:17 +02:00
checkdepends=('python-pytest' 'python-pretend')
source=("https://github.com/pypa/packaging/archive/$pkgver/$pkgname-$pkgver.tar.gz")
2023-05-17 09:58:40 +02:00
sha512sums=('1e717a2c97371e177f6b73de8de0440384e7abf361771e68b1696bc8e67d9d0995d2aeb2037995a16ecd374f58317793e66574c9fc28691b4e6094ece69cb5f0')
2022-04-01 01:04:17 +02:00
build() {
cd packaging-$pkgver
python -m build -nw
2022-04-01 01:04:17 +02:00
}
check() {
cd packaging-$pkgver
PYTHONPATH=src pytest
2022-04-01 01:04:17 +02:00
}
package() {
cd packaging-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
2022-04-01 01:04:17 +02:00
}