From 3f5eaa7970d7b6c6abff6b3b2cd7037fcf389ab0 Mon Sep 17 00:00:00 2001 From: Colin Reeder Date: Wed, 20 Oct 2021 21:57:17 -0600 Subject: [PATCH] python3-jellyfish: Update to 0.8.8 --- srcpkgs/python3-jellyfish/template | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python3-jellyfish/template b/srcpkgs/python3-jellyfish/template index c1b55e36e8ef..edecbfc52131 100644 --- a/srcpkgs/python3-jellyfish/template +++ b/srcpkgs/python3-jellyfish/template @@ -1,19 +1,25 @@ # Template file for 'python3-jellyfish' pkgname=python3-jellyfish -version=0.7.2 -revision=4 +version=0.8.8 +revision=1 wrksrc="jellyfish-${version}" build_style=python3-module pycompile_module="jellyfish" hostmakedepends=" python3-setuptools" makedepends="python3-devel" +checkdepends="python3-pytest" short_desc="Python3 library for approximate and phonetic matching of strings" maintainer="Duncaen " license="BSD-2-Clause" homepage="https://github.com/sunlightlabs/jellyfish" distfiles="${PYPI_SITE}/j/jellyfish/jellyfish-${version}.tar.gz" -checksum=cb09c50d7e2bb7b926fc7654762bc81f9c629e0c92ae7137bf22b34f39515286 +checksum=0506089cacf9b5897442134417b04b3c6610c19f280ae535eace390dc6325a5c post_install() { vlicense LICENSE } + +do_check() { + build_loc=$(compgen -G build/lib.linux-*) + PYTHONPATH="${build_loc}" pytest "${build_loc}/jellyfish/test.py" +}