py-meshio: add 5.0.1 and 4.4.6 (#26285)

This commit is contained in:
Manuela Kuhn 2021-09-28 03:17:22 +02:00 committed by GitHub
parent 87b23cc9cd
commit c1cfbc5536
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,13 +12,16 @@ class PyMeshio(PythonPackage):
homepage = "https://github.com/nschloe/meshio"
pypi = "meshio/meshio-5.0.0.tar.gz"
version('5.0.1', sha256='e283f40b5fb68fc5c232829c33c086789661438960762b22dc2823571a089a8b')
version('5.0.0', sha256='f6327c06d6171d30e0991d3dcb048751035f9cfac1f19e2444971275fd971188')
version('4.4.6', sha256='be352a0924c9eff99768a6f402b7558dbb280bbf1e7bf43f18cef92db418684f')
# MeshIO uses a setup.cfg/pyproject.toml structure, which spack doesn't yet handle.
# This patch adds a small setup.py file that spack can call.
patch('setup.patch')
depends_on('python@3.7:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('python@3.7:', when='@5.0.0:', type=('build', 'run'))
depends_on('python@3.6:', type=('build', 'run'))
depends_on('py-setuptools@42:', type='build')
depends_on('py-numpy', type=('build', 'run'))
depends_on('py-importlib-metadata', when='^python@:3.7', type=('build', 'run'))