1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_6} )
10 DESCRIPTION="Pure-Python implementation of the Git file formats and protocols"
11 HOMEPAGE="https://github.com/jelmer/dulwich/ https://pypi.org/project/dulwich/"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="amd64 arm64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
17 IUSE="doc examples test"
18 RESTRICT="!test? ( test )"
21 dev-python/setuptools[${PYTHON_USEDEP}]
23 dev-python/gevent[${PYTHON_USEDEP}]
24 dev-python/geventhttpclient[${PYTHON_USEDEP}]
25 dev-python/mock[${PYTHON_USEDEP}]
26 dev-python/python-fastimport[${PYTHON_USEDEP}]
29 DISTUTILS_IN_SOURCE_BUILD=1
31 # One test sometimes fails
32 # https://github.com/jelmer/dulwich/issues/541
33 PATCHES=( "${FILESDIR}/${PN}-0.18.3-skip-failing-test.patch" )
35 python_compile_all() {
36 use doc && emake -C docs html
43 python_install_all() {
44 use doc && local HTML_DOCS=( docs/build/html/. )
46 insinto "/usr/share/doc/${PF}"
47 docompress -x "/usr/share/doc/${PF}/examples"
50 distutils-r1_python_install_all