py-defusedxml

Details
Source
FROM stagex/pallet-python AS build
ARG VERSION
ADD fetch/py-defusedxml-${VERSION}.tar.gz .
WORKDIR /defusedxml-${VERSION}/
RUN --network=none <<-EOF
  set -eu
  python -m build --wheel --skip-dependency-check --no-isolation
  python -m installer -d /rootfs dist/*.whl
  install -D -m0644 LICENSE /rootfs/usr/share/license/py-defusedxml/LICENSE
  find /rootfs | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
EOF

FROM stagex/core-filesystem AS package
COPY --from=build /rootfs /