diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-06-01 23:35:12 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-06-01 23:35:12 +0200 |
commit | f9881266ef7089a653183694b14fd65372c6bf85 (patch) | |
tree | e58c4ede8ab8573f33810f6f51cb356bc924fc0a /dev-python/pygit2 | |
parent | dev-python/google-api-python-client: Bump to 2.7.0 (diff) | |
download | gentoo-f9881266ef7089a653183694b14fd65372c6bf85.tar.gz gentoo-f9881266ef7089a653183694b14fd65372c6bf85.tar.bz2 gentoo-f9881266ef7089a653183694b14fd65372c6bf85.zip |
dev-python/pygit2: Bump to 1.6.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pygit2')
-rw-r--r-- | dev-python/pygit2/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pygit2/pygit2-1.6.0.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/pygit2/Manifest b/dev-python/pygit2/Manifest index 604910fac8bf..2513d3009788 100644 --- a/dev-python/pygit2/Manifest +++ b/dev-python/pygit2/Manifest @@ -1 +1,2 @@ DIST pygit2-1.5.0.tar.gz 255958 BLAKE2B 696a4c39920e7f66962b69d2a838c55bfb6f96e7e5ee56a39aaa732926accc3bb6331042382fd22f377959cbc129be0320d94765d13db95fdb7c7f87a14f7608 SHA512 3f915c855ad08641391565906023d231550a38d4e7f8938fad4634a30e2ee1c81e2a0d3289052426e21d2c14814300a0f789eaaa9f3e62c3ece73cf53803bb80 +DIST pygit2-1.6.0.tar.gz 265798 BLAKE2B 8244cbcecdd9b9edcb8fb0cfbc2024f1d36a01c8a3e519e05770ca80d7a482393892bcbd4a61402e7622b84f02909a2a36b9767273d6322a94a15eb974fdb8fa SHA512 c051ce09d227b6ec0c7d3068b5b0220f5c150936d788462dfb3236c97954f9b76f6a1fd61cd42e604810582e3d1a5bc8784fc51c9fedac66ad1b42af580af494 diff --git a/dev-python/pygit2/pygit2-1.6.0.ebuild b/dev-python/pygit2/pygit2-1.6.0.ebuild new file mode 100644 index 000000000000..15da3c0f8d4c --- /dev/null +++ b/dev-python/pygit2/pygit2-1.6.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{7..9} ) + +inherit distutils-r1 + +DESCRIPTION="Python bindings for libgit2" +HOMEPAGE="https://github.com/libgit2/pygit2 https://pypi.org/project/pygit2/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="GPL-2-with-linking-exception" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + =dev-libs/libgit2-1.1* + dev-python/cached-property[${PYTHON_USEDEP}] + >=dev-python/cffi-1.0:=[${PYTHON_USEDEP}] +" + +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 + + # we need to move them away to prevent pytest from forcing '..' + # for imports + mkdir hack || die + mv test hack/ || die + ln -s hack/test test || die +} + +python_test() { + pytest -vv hack/test || die +} |