# Template file for 'python3-jellyfish'
pkgname=python3-jellyfish
version=1.2.1
revision=1
build_style=python3-pep517
build_helper="rust"
hostmakedepends="maturin cargo"
makedepends="python3-devel"
depends="python3"
checkdepends="python3-pytest"
short_desc="Python3 library for approximate and phonetic matching of strings"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://jamesturk.github.io/jellyfish/"
changelog="https://raw.githubusercontent.com/jamesturk/jellyfish/main/docs/changelog.md"
distfiles="${PYPI_SITE}/j/jellyfish/jellyfish-${version}.tar.gz"
checksum=72d2fda61b23babe862018729be73c8b0dc12e3e6601f36f6e65d905e249f4db

if [ "$CROSS_BUILD" ]; then
	makedepends+=" rust-std"
fi

post_install() {
	vlicense LICENSE
}
