diff --git a/dev-python/pygit2/Manifest b/dev-python/pygit2/Manifest index f0086dc088f77..54b29e8e18fd4 100644 --- a/dev-python/pygit2/Manifest +++ b/dev-python/pygit2/Manifest @@ -1 +1,2 @@ DIST pygit2-1.20.0.tar.gz 826041 BLAKE2B fee018d70b7d23b93bba3f05251688c38ece343c5f8e76f6505cfee4389b4f4754e9a1c12a2fcb66c8e7aa4463ff681bd3e8bc0d2f268b934c184ac291583451 SHA512 2978d8e4685f1599215cbd6654613945fde28305062aa04bb3042739a7700a6433e009fd0910229ff4e826f005f83dc20786c52911cb3c52ae72d34c516fd28a +DIST pygit2-1.20.1.tar.gz 888235 BLAKE2B b60fa2e0bf63b23566cb8d0b0a83905991d889ae0f0ff3c4303832165c35cd13b1565929d6940f6a8dcec29b0eec7605b8c544bce44e122a7c9138de9e3f0714 SHA512 e85e29aaa02d8032e89956f6a09550afb2ee96808a42feeda07218e6648adfed2bc2368a281d99367e6d901f82acb812dd641c9880e60d1869baa88164906ed3 diff --git a/dev-python/pygit2/pygit2-1.20.1.ebuild b/dev-python/pygit2/pygit2-1.20.1.ebuild new file mode 100644 index 0000000000000..e9e58c36f7672 --- /dev/null +++ b/dev-python/pygit2/pygit2-1.20.1.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_{12..15} python3_{14..15}t ) + +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 ~arm64 ~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 +}