Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/objgraph/
Date: Sat, 21 May 2022 07:36:46
Message-Id: 1653118119.6c80573c9865b7004b08fb15aa5ed9672d6b1cb3.mgorny@gentoo
1 commit: 6c80573c9865b7004b08fb15aa5ed9672d6b1cb3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 21 07:28:39 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat May 21 07:28:39 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c80573c
7
8 dev-python/objgraph: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/objgraph/objgraph-3.5.0-r1.ebuild | 47 ++++++++++++++++++++++++++++
13 1 file changed, 47 insertions(+)
14
15 diff --git a/dev-python/objgraph/objgraph-3.5.0-r1.ebuild b/dev-python/objgraph/objgraph-3.5.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..7b2db209bd8d
18 --- /dev/null
19 +++ b/dev-python/objgraph/objgraph-3.5.0-r1.ebuild
20 @@ -0,0 +1,47 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Draws Python object reference graphs with graphviz"
32 +HOMEPAGE="
33 + https://github.com/mgedmin/objgraph/
34 + https://pypi.org/project/objgraph/
35 +"
36 +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="MIT"
39 +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux"
40 +SLOT="0"
41 +IUSE="doc"
42 +
43 +RDEPEND="
44 + media-gfx/graphviz
45 +"
46 +BDEPEND="
47 + test? (
48 + media-gfx/xdot
49 + )
50 +"
51 +
52 +PATCHES=(
53 + "${FILESDIR}/objgraph-3.4.1-tests.patch"
54 +)
55 +
56 +distutils_enable_tests unittest
57 +
58 +src_prepare() {
59 + # the dependency is optional, actually
60 + sed -i -e '/graphviz/d' setup.py || die
61 + distutils-r1_src_prepare
62 +}
63 +
64 +python_install_all() {
65 + use doc && local HTML_DOCS=( docs/* )
66 + distutils-r1_python_install_all
67 +}