Install this version:
emerge -a =dev-python/patch-ng-1.19.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/patch-ng-1.19.1
Or alternatively:
emerge --autounmask-write -a =dev-python/patch-ng-1.19.1
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1
MY_P=python-patch-ng-${PV}
DESCRIPTION="Library to parse and apply unified diffs, fork of dev-python/patch"
HOMEPAGE="
https://github.com/conan-io/python-patch-ng/
https://pypi.org/project/patch-ng/
"
SRC_URI="
https://github.com/conan-io/python-patch-ng/archive/${PV}.tar.gz
-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
distutils_enable_tests unittest
python_test() {
"${EPYTHON}" -m unittest -v tests/run_tests.py ||
die "Tests failed under ${EPYTHON}"
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | python-patch-ng-1.19.1.gh.tar.gz | 174179 bytes | https://github.com/conan-io/python-patch-ng/archive/1.19.1.tar.gz |