# Maintainer: Daniel Bershatsky pkgname=python-jaxtyping _pkgname=${pkgname#python-} pkgver=0.2.25 pkgrel=1 pkgdesc='Type annotations and runtime checking for shape and dtype of JAX arrays, and PyTrees.' arch=('any') url="https://github.com/google/jaxtyping" license=('Apache') groups=('jax') depends=( 'python-numpy' 'python-typeguard' 'python-typing_extensions' ) makedepends=('python-build' 'python-hatchling' 'python-installer' 'python-wheel') optdepends=('python-jax: Original JAX type system support.' 'python-pytest: Extension for pytest with jaxtyping plugin.') source=("$pkgname-$pkgver.tar.gz::https://github.com/google/$_pkgname/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('d1171ae18e805178dfa04078de0d1ff8b06c2aafc74f0325f14b3d3dc6466ba7') build() { python -m build -nw $_pkgname-$pkgver } package() { python -m installer \ --compile-bytecode 1 \ --destdir $pkgdir \ $_pkgname-$pkgver/dist/$_pkgname-$pkgver-*.whl }