# Copyright 2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=standalone PYTHON_COMPAT=( python3_{12..14} ) inherit distutils-r1 _WHL="nemo_relay-${PV}-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl" DESCRIPTION="Python bindings for the NeMo Relay agent runtime" HOMEPAGE="https://pypi.org/project/nemo-relay/" SRC_URI="https://files.pythonhosted.org/packages/8e/3f/4637c46d565f0cabc5a1426ff04e824de82762941874158a44faeb734321/${_WHL}" S="${WORKDIR}" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="-* ~amd64" RESTRICT="mirror strip test" # abi3 wheel (cp311+) shipping a native _native.abi3.so; installed directly # following the magika/ast-grep-cli wheel-bin pattern. hermes-agent's core # dependency list pulls this on linux/x86_64. src_unpack() { : } src_compile() { : } python_install() { distutils_wheel_install "${ED}" "${DISTDIR}/${_WHL}" # the wheel ships LICENSE at site-packages top-level (stray-file QA # failure); relocate it to the licenses dir. dodir /usr/share/licenses/${PF} mv "${ED}$(python_get_sitedir)/LICENSE" \ "${ED}/usr/share/licenses/${PF}/LICENSE" || die }