jobextra/python-six/PKGBUILD

42 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 |---------------------------------------
#pkgbase=python-six
pkgname=python-six
#pkgname=('python2-six' 'python-six')
pkgver=1.16.0
pkgrel=06
pkgdesc="Python 2 and 3 compatibility utilities"
arch=('any')
url="https://pypi.python.org/pypi/six/"
depends=('python')
makedepends=('python-setuptools') # 'python2-setuptools')
checkdepends=('python-pytest' 'tk')
source=("https://pypi.io/packages/source/s/six/six-$pkgver.tar.gz")
#build() {
# cp -a six-$pkgver{,-py2}
#}
check() {
cd six-$pkgver
python -m pytest
}
package() {
cd six-$pkgver
python setup.py install --root "$pkgdir" --optimize=1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
#---- license gpg-key sha256sums ----
license=('MIT')
sha256sums=(1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926) # six-1.16.0.tar.gz