archrelease: copy trunk to community-any
[arch-community.git] / python-pytest-jupyter / trunk / PKGBUILD
blob4e2a154af65412ba310af2c96635d4b8e32d2ed6
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=python-pytest-jupyter
4 pkgver=0.7.0
5 pkgrel=3
6 pkgdesc='A pytest plugin for testing Jupyter core libraries and extensions'
7 arch=(any)
8 url='https://github.com/jupyter-server/pytest-jupyter'
9 license=(BSD)
10 depends=(python-pytest jupyter-server)
11 makedepends=(python-build python-installer python-hatchling)
12 checkdepends=(python-pytest-timeout)
13 source=(https://github.com/jupyter-server/pytest-jupyter/releases/download/v$pkgver/pytest_jupyter-$pkgver.tar.gz)
14 sha256sums=('6403b7f6f5eaaa5a9faffd73d2ff1097106a7dc5c3204292212487fc9fb71843')
16 build() {
17   cd pytest_jupyter-$pkgver
18   python -m build --wheel --no-isolation
21 check() {
22   cd pytest_jupyter-$pkgver
23   PYTHONPATH="$PWD" \
24   pytest -v
27 package() {
28   cd pytest_jupyter-$pkgver
29   python -m installer --destdir="$pkgdir" dist/*.whl
30   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname