diff --git a/dev-python/pygit2/Manifest b/dev-python/pygit2/Manifest index 7b6c67b26bed9..d77346940429f 100644 --- a/dev-python/pygit2/Manifest +++ b/dev-python/pygit2/Manifest @@ -1 +1,2 @@ DIST pygit2-1.19.1.tar.gz 800869 BLAKE2B 9787275b7fe39894299a686e176457848f006148a8479a8454b032b72e99f58b32c7d882a5e307ccdc6bf96dab894731f0a0935219ffd70a88055c8d89cc89b9 SHA512 c1ac89f61ee701b05af0b47d9d664586c659f67447be39fdf4671617c3327155bfe3eab8b24c52c3ab64b92a862bd6b95f2d457e70fde78825fc48e5da525932 +DIST pygit2-1.19.2.tar.gz 803448 BLAKE2B ec15daaca0b7a01ffd53bbaac64d20aa5e06073974770b27f33772e63b3f03375fcdfa8784933930e55881a79e2fbe2e92c86b658d1d927a4e39c7d33f547f2e SHA512 e40699d38709fd24c3ca8e9e224e17af45aa0dd2c8149b5e766164b28dd93c1b0603ad4dc358e80a8ea223a60030fa8552f6b6fb28e0320fc040abee30dace7a diff --git a/dev-python/pygit2/pygit2-1.19.2.ebuild b/dev-python/pygit2/pygit2-1.19.2.ebuild new file mode 100644 index 0000000000000..e32f89c56431b --- /dev/null +++ b/dev-python/pygit2/pygit2-1.19.2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} python3_14t ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python bindings for libgit2" +HOMEPAGE=" + https://github.com/libgit2/pygit2/ + https://pypi.org/project/pygit2/ +" + +LICENSE="GPL-2-with-linking-exception" +SLOT="0" +KEYWORDS="~amd64 ~loong ~riscv ~x86" + +DEPEND=" + =dev-libs/libgit2-1.9.0:= +" +BDEPEND=" + >=dev-python/cffi-2.0.0:=[${PYTHON_USEDEP}] +" +RDEPEND=" + ${DEPEND} + ${BDEPEND} +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + # unconditionally prevent it from using network + sed -i -e '/has_network/s:True:False:' test/utils.py || die +} + +src_test() { + rm -r pygit2 || die + distutils-r1_src_test +}