From df333815b0982be983a2b1008b622d0175f86528 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 2 Dec 2024 09:41:02 -0500 Subject: [PATCH] New package: python3-flit_core-bootstrap-3.9.0 dependency of python3-{installer,packaging}-bootstrap --- srcpkgs/python3-flit_core-bootstrap/template | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 srcpkgs/python3-flit_core-bootstrap/template diff --git a/srcpkgs/python3-flit_core-bootstrap/template b/srcpkgs/python3-flit_core-bootstrap/template new file mode 100644 index 00000000000..77870bdfd1d --- /dev/null +++ b/srcpkgs/python3-flit_core-bootstrap/template @@ -0,0 +1,30 @@ +# Template file for 'python3-flit_core-bootstrap' +pkgname=python3-flit_core-bootstrap +version=3.9.0 +revision=1 +# This package is required by python3-build and python3-installer, used by the +# python3-pep517 style; so using that style here would create a cycle +hostmakedepends="python3" +depends="python3" +short_desc="Simplified packaging of Python modules (for xbps-src use)" +maintainer="Andrew J. Hesford " +license="BSD-3-Clause" +homepage="https://flit.pypa.io/" +changelog="https://flit.pypa.io/en/stable/history.html" +distfiles="${PYPI_SITE}/f/flit_core/flit_core-${version}.tar.gz" +checksum=72ad266176c4a3fcfab5f2930d76896059851240570ce9a98733b658cb786eba +make_check=no # bootstrap +repository=bootstrap +nopyprovides=yes +noverifypydeps=yes + +do_build() { + python3 -m flit_core.wheel +} + +do_install() { + python3 bootstrap_install.py --install-root "${DESTDIR}" \ + --installdir "/${py3_sitelib}-bootstrap" \ + "dist/flit_core-${version}-py3-none-any.whl" + vlicense LICENSE +}