From 58cd42634f18e8a562ab88d3555fafa614de1d09 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Tue, 8 Nov 2022 10:21:01 -0500 Subject: [PATCH] python3-tomli: build with packaged python3-flit_core --- srcpkgs/python3-tomli/template | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/srcpkgs/python3-tomli/template b/srcpkgs/python3-tomli/template index 8e95733a2f9..ec26197b0a6 100644 --- a/srcpkgs/python3-tomli/template +++ b/srcpkgs/python3-tomli/template @@ -1,35 +1,19 @@ # Template file for 'python3-tomli' pkgname=python3-tomli version=2.0.1 -revision=2 -create_wrksrc=yes -build_wrksrc="tomli-${version}" +revision=3 build_style=python3-pep517 -hostmakedepends="python3" +hostmakedepends="python3-flit_core" depends="python3" short_desc="Little TOML parser for Python" maintainer="Andrew J. Hesford " license="MIT" homepage="https://github.com/hukkin/tomli" -# flit_core>=3.4.0 requires tomli to run, while tomli requires flit_core to -# build. Both upstreams are aware of the cycle, but neither cares: -# https://github.com/hukkin/tomli/issues/130 -# https://github.com/takluyver/flit/issues/451 -# As a result, we can't use python3-flit_core to build this package, so we have -# to just fetch the flit_core tarball to bootstrap tomli. Sigh. -_flit_version=3.6.0 -distfiles="${PYPI_SITE}/t/tomli/tomli-${version}.tar.gz - ${PYPI_SITE}/f/flit_core/flit_core-${_flit_version}.tar.gz" -checksum="de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f - 5892962ab8b8ea945835b3a288fe9dd69316f1903d5288c3f5cafdcdd04756ad" +distfiles="${PYPI_SITE}/t/tomli/tomli-${version}.tar.gz" +checksum="de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f" # Archive includes no tests make_check=no -pre_build() { - # Build requires that tomli be able to import flit_core *and* itself! - export PYTHONPATH="${PWD}:${wrksrc}/flit_core-${_flit_version}" -} - post_install() { vlicense LICENSE }