Name python-jaraco.context
Description Context managers by jaraco
Version 6.0.1-3
Package Base python-jaraco.context
Homepage https://github.com/jaraco/jaraco.context
Maintainers ['Antonio Rojas <arojas@archlinux.org>', 'Felix Yan <felixonmars@archlinux.org>']
Contributors []
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/python-jaraco.context
Sources ['git+https://github.com/jaraco/jaraco.context.git#tag=v6.0.1']
Dependencies ['python']
Optional-Dependencies []
Build-Dependencies ['git', 'python-setuptools-scm', 'python-build', 'python-installer', 'python-wheel']
Provides []
Builddate 26-12-2025 15:16:38
Architecture any
Distro-Version
Licenses ['MIT']
Hash 35f3964121a1304ea9b8d202a48b4b57d20ff0faeaf4a6baa15f3c126a2be3a1
# 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')
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/
}