~dricottone/huttese-apk

ref: 01f47675269a364fe80701a6e2787557d44019c5 huttese-apk/pkgsrc/py3-wcag-contrast-ratio/APKBUILD -rw-r--r-- 881 bytes
01f47675Dominic Ricottone Revert update on ansi2html, atpublic, pygments 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-wcag-contrast-ratio
pkgver=0.9
pkgrel=0
pkgdesc="Library for computing contrast ratios, as required by WCAG 2.0"
url="https://github.com/gsnedders/wcag-contrast-ratio"
license="MIT"
arch="noarch"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-hypothesis"
source="https://github.com/gsnedders/wcag-contrast-ratio/archive/$pkgver/py3-wcag-contrast-ratio-$pkgver.tar.gz"
builddir="$srcdir/wcag-contrast-ratio-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest test.py
}

package() {
	python3 setup.py install --root="$pkgdir" --skip-build
}

sha512sums="
70ff827b092cec884ba7e969deb8b5de944844b8d5536669f2c607061fbf569c217cec93268215deb9fdebc041efd992ed0cc89e0da013f9a1be8eeeb420cec5  py3-wcag-contrast-ratio-0.9.tar.gz
"