jobextra/python-packaging/PKGBUILD

39 lines
1.0 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=21.3
pkgrel=01
pkgdesc="Core utilities for Python packages"
arch=('any')
url="https://github.com/pypa/packaging"
depends=('python-pyparsing')
makedepends=('python-setuptools')
checkdepends=('python-pytest' 'python-pretend')
source=("https://github.com/pypa/packaging/archive/$pkgver/$pkgname-$pkgver.tar.gz")
build() {
cd packaging-$pkgver
python setup.py build
}
check() {
cd packaging-$pkgver
python -m pytest
}
package() {
cd packaging-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}
#---- license gpg-key sha256sums ----
license=('Apache')
sha256sums=(618b3f2c055a0c0b5e072026fabce690fc753d5337d4493f8393f19e038e6308) # python-packaging-21.3.tar.gz