diff --git a/srcpkgs/python-automat/patches/py2fix.patch b/srcpkgs/python-automat/patches/py2fix.patch deleted file mode 100644 index 8613b16afe9..00000000000 --- a/srcpkgs/python-automat/patches/py2fix.patch +++ /dev/null @@ -1,37 +0,0 @@ -Our builders still use the py2 version of this package. - ---- a/automat/_methodical.py -+++ b/automat/_methodical.py -@@ -4,9 +4,15 @@ - from functools import wraps - from itertools import count - --from inspect import getfullargspec as getArgsSpec -+try: -+ # Python 3 -+ from inspect import getfullargspec as getArgsSpec -+except ImportError: -+ # Python 2 -+ from inspect import getargspec as getArgsSpec - - import attr -+import six - - from ._core import Transitioner, Automaton - from ._introspection import preserveName -@@ -30,13 +36,13 @@ - return ArgSpec( - args=tuple(spec.args), - varargs=spec.varargs, -- varkw=spec.varkw, -+ varkw=spec.varkw if six.PY3 else spec.keywords, - defaults=spec.defaults if spec.defaults else (), - kwonlyargs=tuple(spec.kwonlyargs), - kwonlydefaults=( - tuple(spec.kwonlydefaults.items()) - if spec.kwonlydefaults else () -- ), -+ ) if six.PY3 else (), - annotations=tuple(spec.annotations.items()), - ) - diff --git a/srcpkgs/python-automat/template b/srcpkgs/python-automat/template deleted file mode 100644 index cf564d324fc..00000000000 --- a/srcpkgs/python-automat/template +++ /dev/null @@ -1,27 +0,0 @@ -# Template file for 'python-automat' -pkgname=python-automat -version=22.10.0 -revision=2 -build_style=python2-module -hostmakedepends="python-setuptools" -depends="python-setuptools python-attrs python-six" -short_desc="Finite-state machines in Python (Python2)" -maintainer="Orphaned " -license="MIT" -homepage="https://github.com/glyph/Automat" -distfiles="${PYPI_SITE}/A/Automat/Automat-${version}.tar.gz" -checksum=e56beb84edad19dcc11d30e8d9b895f75deeb5ef5e96b84a467066b3b84bb04e -alternatives="automat:automat-visualize:/usr/bin/automat-visualize2" -make_check=no # python2 - -pre_build() { - sed -i setup.py \ - -e '/print(/d' \ - -e '/setup_requires=/,+3d' \ - -e "s/use_scm_version=True/version='${version}'/" -} - -post_install() { - mv ${DESTDIR}/usr/bin/automat-visualize{,2} - vlicense LICENSE -}