OCaml 4.14.0 rebuild
[arch-packages.git] / python-packaging / trunk / PKGBUILD
blobcb16499f8600f7f3f61012242eabf88c5a7647dd
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-packaging
4 pkgver=21.3
5 pkgrel=1
6 pkgdesc="Core utilities for Python packages"
7 arch=('any')
8 url="https://github.com/pypa/packaging"
9 license=('Apache')
10 depends=('python-pyparsing')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest' 'python-pretend')
13 source=("https://github.com/pypa/packaging/archive/$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('8960deacda26877b73d98a3b632e760e902a16ec7a04707f84044980e4d4fb33e4f584db115c9008066aa876079f28633bafe37fbd5ce9a23830b6b89eb4ae7a')
16 build() {
17   cd packaging-$pkgver
18   python setup.py build
21 check() {
22   cd packaging-$pkgver
23   python -m pytest
26 package() {
27   cd packaging-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1