error: libhdf5.so: cannot open shared object file: No such file or directory

When trying to install python-hdf5 (a dependency of one of my packages), I’m getting

Loading library to get version: libhdf5.so
error: libhdf5.so: cannot open shared object file: No such file or directory

see [1].
That’s funny because I _did_ apt install python3-h5py, which should pull in this dependency. It seems like Python cannot find system libraries.

Any hint on how to fix this?

[1] https://github.com/nschloe/meshio/pull/570/checks?check_run_id=334587433