diff --git a/srcpkgs/python3-automat/template b/srcpkgs/python3-automat/template index 204cead05afb00..40cae4ac49e402 100644 --- a/srcpkgs/python3-automat/template +++ b/srcpkgs/python3-automat/template @@ -1,23 +1,22 @@ # Template file for 'python3-automat' pkgname=python3-automat -version=24.8.1 -revision=3 +version=25.4.16 +revision=1 build_style=python3-pep517 -hostmakedepends="python3-setuptools python3-setuptools_scm python3-wheel" -depends="python3-setuptools python3-attrs python3-six" -checkdepends="${depends} python3-pytest python3-pytest-benchmark python3-graphviz" -short_desc="Finite-state machines in Python (Python3)" +hostmakedepends="python3-setuptools python3-wheel hatch-vcs" +depends="python3" +short_desc="Finite-state machines in Python" maintainer="Orphaned " license="MIT" homepage="https://github.com/glyph/Automat" distfiles="${PYPI_SITE}/a/automat/automat-${version}.tar.gz" -checksum=b34227cf63f6325b8ad2399ede780675083e439b20c323d376373d8ee6306d88 +checksum=0017591a5477066e90d26b0e696ddc143baafd87b588cfac8100bc6be9634de0 alternatives="automat:automat-visualize:/usr/bin/automat-visualize3" -# do_check() { -# PYTHONPATH="$(cd build/lib* && pwd)" \ -# python3 -m pytest ${testjobs} automat/_test -# } +if [ "$XBPS_CHECK_PKGS" = full ]; then + # some tests require Twisted which would cause a build-time circular dependency + checkdepends+=" python3-pytest python3-pytest-benchmark python3-graphviz python3-Twisted" +fi post_install() { mv ${DESTDIR}/usr/bin/automat-visualize{,3}