jobextra/python-packaging/PKGBUILD

43 lines
1.1 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=python-packaging
pkgver=23.1
pkgrel=01
pkgdesc="Core utilities for Python packages"
url="https://github.com/pypa/packaging"
depends=('python')
makedepends=('python-build' 'python-installer' 'python-flit-core')
checkdepends=('python-pytest' 'python-pretend')
source=("https://github.com/pypa/packaging/archive/$pkgver/$pkgname-$pkgver.tar.gz")
build() {
cd packaging-$pkgver
python -m build -nw
}
check() {
cd packaging-$pkgver
PYTHONPATH=src pytest
}
package() {
cd packaging-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('Apache')
sha256sums=(384116e3dc159909bf3b547b98244d6190c61fdd7279ddd4daa0f3548e7cc9bc) # python-packaging-23.1.tar.gz
## 7ee6c4e14be72c2743bf26609005ee93564254366792f6ecb2e39ec106146bbb python-packaging-23.1-01-x86_64.pkg.tar.lz