diff --git a/srcpkgs/python3-PyICU/template b/srcpkgs/python3-PyICU/template index d1e0612a78a..6d2da03b053 100644 --- a/srcpkgs/python3-PyICU/template +++ b/srcpkgs/python3-PyICU/template @@ -1,22 +1,23 @@ # Template file for 'python3-PyICU' pkgname=python3-PyICU -version=2.6 +version=2.7.1 revision=1 -wrksrc="PyICU-${version}" +wrksrc="pyicu-v${version}" build_style=python3-module hostmakedepends="python3-setuptools" makedepends="python3-devel icu-devel" +depends="python3" checkdepends="python3-pytest python3-six" short_desc="Python extension wrapping the ICU C++ API (Python3)" maintainer="Piotr Wójcik " license="MIT" -homepage="https://github.com/ovalhub/pyicu" -changelog="https://raw.githubusercontent.com/ovalhub/pyicu/master/CHANGES" -distfiles="${PYPI_SITE}/P/PyICU/PyICU-${version}.tar.gz" -checksum=a9a5bf6833360f8f69e9375b91c1a7dd6e0c9157a42aee5bb7d6891804d96371 +homepage="https://pypi.org/project/PyICU/" +changelog="https://gitlab.pyicu.org/main/pyicu/-/raw/main/CHANGES" +distfiles="https://gitlab.pyicu.org/main/pyicu/-/archive/v${version}/pyicu-v${version}.tar.bz2" +checksum=c36114e39ab62a7c0fba56e8c5256c1eeae05d5207c766d3dd7ed422a8d877a3 -do_check() { - python3 setup.py test +pre_check() { + export PYTHONPATH=$(cd build/lib* && pwd) } post_install() { diff --git a/srcpkgs/python3-PyICU/update b/srcpkgs/python3-PyICU/update new file mode 100644 index 00000000000..879536c9701 --- /dev/null +++ b/srcpkgs/python3-PyICU/update @@ -0,0 +1 @@ +pkgname=pyicu