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: Thu, 30 Dec 2021 21:56:11
Message-Id: 1640901339.396580f0c09f3615775531bab823fe9c90e724ff.mgorny@gentoo
1 commit: 396580f0c09f3615775531bab823fe9c90e724ff
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 30 21:46:25 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 30 21:55:39 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=396580f0
7
8 dev-python/wcag-contrast-ratio: New dep of pygments, v0.9
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/wcag-contrast-ratio/Manifest | 1 +
13 dev-python/wcag-contrast-ratio/metadata.xml | 13 ++++++++++
14 .../wcag-contrast-ratio-0.9.ebuild | 30 ++++++++++++++++++++++
15 3 files changed, 44 insertions(+)
16
17 diff --git a/dev-python/wcag-contrast-ratio/Manifest b/dev-python/wcag-contrast-ratio/Manifest
18 new file mode 100644
19 index 000000000000..64dc19f7685d
20 --- /dev/null
21 +++ b/dev-python/wcag-contrast-ratio/Manifest
22 @@ -0,0 +1 @@
23 +DIST wcag-contrast-ratio-0.9.gh.tar.gz 3347 BLAKE2B c32765e7011faf9128bd4c53673c4663b972e225e0f7249dd1b9f07b4184ae9ca93116f31de6a0538f04612a72ee1e805b37e1070ae62347508f29df2bbf9ec4 SHA512 70ff827b092cec884ba7e969deb8b5de944844b8d5536669f2c607061fbf569c217cec93268215deb9fdebc041efd992ed0cc89e0da013f9a1be8eeeb420cec5
24
25 diff --git a/dev-python/wcag-contrast-ratio/metadata.xml b/dev-python/wcag-contrast-ratio/metadata.xml
26 new file mode 100644
27 index 000000000000..6c547f086dfc
28 --- /dev/null
29 +++ b/dev-python/wcag-contrast-ratio/metadata.xml
30 @@ -0,0 +1,13 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="project">
35 + <email>python@g.o</email>
36 + <name>Python</name>
37 + </maintainer>
38 + <stabilize-allarches/>
39 + <upstream>
40 + <remote-id type="pypi">wcag-contrast-ratio</remote-id>
41 + <remote-id type="github">gsnedders/wcag-contrast-ratio</remote-id>
42 + </upstream>
43 +</pkgmetadata>
44
45 diff --git a/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9.ebuild b/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9.ebuild
46 new file mode 100644
47 index 000000000000..3fb295448138
48 --- /dev/null
49 +++ b/dev-python/wcag-contrast-ratio/wcag-contrast-ratio-0.9.ebuild
50 @@ -0,0 +1,30 @@
51 +# Copyright 2021 Gentoo Authors
52 +# Distributed under the terms of the GNU General Public License v2
53 +
54 +EAPI=8
55 +
56 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
57 +inherit distutils-r1
58 +
59 +DESCRIPTION="A library for computing contrast ratios, as required by WCAG 2.0"
60 +HOMEPAGE="
61 + https://github.com/gsnedders/wcag-contrast-ratio/
62 + https://pypi.org/project/wcag-contrast-ratio/"
63 +SRC_URI="
64 + https://github.com/gsnedders/wcag-contrast-ratio/archive/${PV}.tar.gz
65 + -> ${P}.gh.tar.gz"
66 +
67 +LICENSE="MIT"
68 +SLOT="0"
69 +KEYWORDS="~amd64"
70 +
71 +BDEPEND="
72 + test? (
73 + dev-python/hypothesis[${PYTHON_USEDEP}]
74 + )"
75 +
76 +distutils_enable_tests pytest
77 +
78 +python_test() {
79 + epytest test.py
80 +}