MAINT Add pytest.mark.xfail_browsers and use it to reduce boilerplate. Use a decorator to indicate which browsers we want to xfail test. This works for `run_in_pyodide` as well as normal tests.
package:
  name: libhdf5
  version: 1.13.1

source:
  sha256: 92552458f35c7e58128ce1bfc2831abf901cc142ea0fdd2b056311e4452db7bf
  url: https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_13_1.tar.gz

requirements:
  run:
    - zlib

build:
  library: true
  script: |
    mkdir -p build;
    cd build \
        && LDFLAGS="-s NODERAWFS=1 -sUSE_ZLIB=1 -sFORCE_FILESYSTEM=1" emcmake cmake ../ \
        -DCMAKE_INSTALL_PREFIX=${WASM_LIBRARY_DIR} \
        -DH5_HAVE_GETPWUID=0 \
        -DH5_HAVE_SIGNAL=0 \
        -DBUILD_SHARED_LIBS=0 \
        -DBUILD_STATIC_LIBS=1 \
        -DBUILD_TESTING=0 \
        -DCMAKE_C_FLAGS="-Wno-incompatible-pointer-types-discards-qualifiers" \
        -DHDF5_BUILD_EXAMPLES=0 \
        -DHDF5_BUILD_TOOLS=0 \
        -DHDF5_BUILD_UTILS=0 \
        -DHDF5_ENABLE_Z_LIB_SUPPORT=1 \
        -DHDF5_ENABLE_ROS3_VFD=0;
    emmake make -j ${PYODIDE_JOBS:-3} install

package:
  name: libhdf5
  version: 1.13.1

source:
  sha256: 92552458f35c7e58128ce1bfc2831abf901cc142ea0fdd2b056311e4452db7bf
  url: https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_13_1.tar.gz

requirements:
  run:
    - zlib

build:
  library: true
  script: |
    mkdir -p build;
    cd build \
        && LDFLAGS="-s NODERAWFS=1 -sUSE_ZLIB=1 -sFORCE_FILESYSTEM=1" emcmake cmake ../ \
        -DCMAKE_INSTALL_PREFIX=${WASM_LIBRARY_DIR} \
        -DH5_HAVE_GETPWUID=0 \
        -DH5_HAVE_SIGNAL=0 \
        -DBUILD_SHARED_LIBS=0 \
        -DBUILD_STATIC_LIBS=1 \
        -DBUILD_TESTING=0 \
        -DCMAKE_C_FLAGS="-Wno-incompatible-pointer-types-discards-qualifiers" \
        -DHDF5_BUILD_EXAMPLES=0 \
        -DHDF5_BUILD_TOOLS=0 \
        -DHDF5_BUILD_UTILS=0 \
        -DHDF5_ENABLE_Z_LIB_SUPPORT=1 \
        -DHDF5_ENABLE_ROS3_VFD=0;
    emmake make -j ${PYODIDE_JOBS:-3} install
