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/pyhamcrest/
Date: Thu, 12 May 2022 13:36:36
Message-Id: 1652362586.9256661fc329cdaeb4a3b46b00ec2e12eff2aebe.mgorny@gentoo
1 commit: 9256661fc329cdaeb4a3b46b00ec2e12eff2aebe
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 12 13:31:36 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 12 13:36:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9256661f
7
8 dev-python/pyhamcrest: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pyhamcrest/pyhamcrest-2.0.3-r1.ebuild | 35 ++++++++++++++++++++++++
13 1 file changed, 35 insertions(+)
14
15 diff --git a/dev-python/pyhamcrest/pyhamcrest-2.0.3-r1.ebuild b/dev-python/pyhamcrest/pyhamcrest-2.0.3-r1.ebuild
16 new file mode 100644
17 index 000000000000..587a165032ce
18 --- /dev/null
19 +++ b/dev-python/pyhamcrest/pyhamcrest-2.0.3-r1.ebuild
20 @@ -0,0 +1,35 @@
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=( pypy3 python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +MY_P="PyHamcrest-${PV}"
32 +DESCRIPTION="Hamcrest framework for matcher objects"
33 +HOMEPAGE="
34 + https://github.com/hamcrest/PyHamcrest/
35 + https://pypi.org/project/PyHamcrest/
36 +"
37 +SRC_URI="
38 + https://github.com/hamcrest/PyHamcrest/archive/V${PV}.tar.gz
39 + -> ${MY_P}.gh.tar.gz
40 +"
41 +S="${WORKDIR}/${MY_P}"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
46 +IUSE="examples"
47 +
48 +distutils_enable_sphinx doc \
49 + dev-python/sphinx_rtd_theme
50 +distutils_enable_tests pytest
51 +
52 +python_install_all() {
53 + use examples && dodoc -r examples
54 + distutils-r1_python_install_all
55 +}