py-fonttools: add 4.29.1 and fix tests (#29032)

This commit is contained in:
Manuela Kuhn 2022-02-17 22:06:57 +01:00 committed by GitHub
parent 98fa2c6f10
commit e6142e8183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,17 @@ class PyFonttools(PythonPackage):
homepage = "https://github.com/fonttools/fonttools"
pypi = "fonttools/fonttools-4.28.1.zip"
version('4.29.1', sha256='2b18a172120e32128a80efee04cff487d5d140fe7d817deb648b2eee023a40e4')
version('4.28.1', sha256='8c8f84131bf04f3b1dcf99b9763cec35c347164ab6ad006e18d2f99fcab05529')
depends_on('python@3.7:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
@property
def import_modules(self):
modules = super(__class__, self).import_modules
ignored_imports = ["fontTools.ufoLib"]
return [i for i in modules
if not any(map(i.startswith, ignored_imports))]