py-imageio-ffmpeg: add 0.4.5, fix installation and import (#26330)

This commit is contained in:
Manuela Kuhn 2021-09-29 14:56:16 +02:00 committed by GitHub
parent 78dbac69e9
commit e01947effc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,8 +18,14 @@ class PyImageioFfmpeg(PythonPackage):
homepage = "https://github.com/imageio/imageio-ffmpeg"
pypi = "imageio-ffmpeg/imageio-ffmpeg-0.4.3.tar.gz"
version('0.4.5', sha256='f2ea4245a2adad25dedf98d343159579167e549ac8c4691cef5eff980e20c139')
version('0.4.3', sha256='f826260a3207b872f1a4ba87ec0c8e02c00afba4fd03348a59049bdd8215841e')
depends_on('python@3.4:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
# Needs setuptools at runtime so that `import pkg_resources` succeeds
depends_on('py-setuptools', type=('build', 'run'))
depends_on('ffmpeg', type='run')
def patch(self):
filter_file('setup_requires=["pip>19"]', 'setup_requires=[]',
'setup.py', string=True)