Install this version:
emerge -a =dev-python/pynvvideocodec-bin-2.2.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/pynvvideocodec-bin-2.2.1
Or alternatively:
emerge --autounmask-write -a =dev-python/pynvvideocodec-bin-2.2.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 2.2.1 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=no
DISTUTILS_SINGLE_IMPL=1
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1
DESCRIPTION="Python bindings for NVIDIA Video Codec SDK"
HOMEPAGE="https://developer.nvidia.com/pynvvideocodec"
SRC_URI="
python_single_target_python3_12? (
https://files.pythonhosted.org/packages/cc/b0/57a5fe847d56a40e6acbf0dfb03de5f51180fc8eec5bc28e42423c681798/pynvvideocodec-${PV}-cp312-cp312-manylinux_2_28_x86_64.whl
)
python_single_target_python3_13? (
https://files.pythonhosted.org/packages/d1/16/9aa9f7c83ec941ee4fb30b7a35af30e3ccc5ec541e422fdaf08937f7e16f/pynvvideocodec-${PV}-cp313-cp313-manylinux_2_28_x86_64.whl
)
python_single_target_python3_14? (
https://files.pythonhosted.org/packages/18/4a/82b55f4cd15e209a76d2db3aa5f3ad453c0e5fa49c9a86dcc9273e3193c2/pynvvideocodec-${PV}-cp314-cp314-manylinux_2_28_x86_64.whl
)
"
S=${WORKDIR}
LICENSE="MIT LGPL-3"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="bindist mirror strip"
QA_PREBUILT="
usr/lib*/python*/site-packages/PyNvVideoCodec/*.so*
usr/lib*/python*/site-packages/pynvvideocodec.*/*.so*
"
python_install() {
local wheel
case ${EPYTHON} in
python3.12) wheel=pynvvideocodec-${PV}-cp312-cp312-manylinux_2_28_x86_64.whl ;;
python3.13) wheel=pynvvideocodec-${PV}-cp313-cp313-manylinux_2_28_x86_64.whl ;;
python3.14) wheel=pynvvideocodec-${PV}-cp314-cp314-manylinux_2_28_x86_64.whl ;;
*) die "unsupported Python implementation: ${EPYTHON}" ;;
esac
${EPYTHON} -m installer --destdir="${D}" "${DISTDIR}/${wheel}" || die
}