# Maintainer: Daniel Bershatsky pkgname=python-jaxtyping _pkgname=${pkgname#python-} pkgver=0.2.21 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=('6d5d66d9dae9319e179a2233df95bb038fe7f9455a4ebb6e1501f4cac22a3ae3') build() { python -m build -n -w $_pkgname-$pkgver } package() { python -m installer \ --compile-bytecode 1 \ --destdir $pkgdir \ $_pkgname-$pkgver/dist/$_pkgname-$pkgver-*.whl }