git » python-jaraco.context.git » main » tree

[main] / PKGBUILD

# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-jaraco.context
pkgver=6.0.1
pkgrel=3
pkgdesc="Context managers by jaraco"
url="https://github.com/jaraco/jaraco.context"
license=('MIT')
arch=('any')
depends=('python' 'python-backports.tarfile')
makedepends=('git' 'python-setuptools-scm' 'python-build' 'python-installer' 'python-wheel')
#checkdepends=('python-portend' 'python-pytest')
source=("git+https://github.com/jaraco/jaraco.context.git#tag=v$pkgver")
b2sums=('a6fbb0d3b57c883abc3f74e4928792e1c5e41e0fbb7cb39ab5750bcbafb6026976f1db6bd020c4996e7b7e1fdb4775527a414ff849ab690e4062f45eb6e96871')

build() {
  cd jaraco.context
  python -m build -wn
}

#check() {
#  cd jaraco.context
#  python -m pytest
#}

package() {
  cd jaraco.context
  python -m installer -d "$pkgdir" dist/*.whl
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}