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/wcag-contrast-ratio/
Date: Sun, 30 Jan 2022 13:09:49
Message-Id: 1643548176.62d08037e30d859a765968927e2dfe57cb87c137.mgorny@gentoo
1 commit: 62d08037e30d859a765968927e2dfe57cb87c137
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 30 12:54:36 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 30 13:09:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62d08037
7
8 dev-python/wcag-contrast-ratio: Switch to PEP 517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../wcag-contrast-ratio-0.9-r1.ebuild | 31 ++++++++++++++++++++++
13 1 file changed, 31 insertions(+)
14
15 diff --git a/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9-r1.ebuild b/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9-r1.ebuild
16 new file mode 100644
17 index 000000000000..bd6b2dc29f65
18 --- /dev/null
19 +++ b/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9-r1.ebuild
20 @@ -0,0 +1,31 @@
21 +# Copyright 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 +inherit distutils-r1
29 +
30 +DESCRIPTION="A library for computing contrast ratios, as required by WCAG 2.0"
31 +HOMEPAGE="
32 + https://github.com/gsnedders/wcag-contrast-ratio/
33 + https://pypi.org/project/wcag-contrast-ratio/"
34 +SRC_URI="
35 + https://github.com/gsnedders/wcag-contrast-ratio/archive/${PV}.tar.gz
36 + -> ${P}.gh.tar.gz"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
41 +
42 +BDEPEND="
43 + test? (
44 + dev-python/hypothesis[${PYTHON_USEDEP}]
45 + )"
46 +
47 +distutils_enable_tests pytest
48 +
49 +python_test() {
50 + epytest test.py
51 +}