~dricottone/huttese-apk

144f3c02431b8a3d025721d48e6fa9942d2e8f10 — Drew DeVault 2 years ago b7c90e6
py3-wcag-contrast-ratio: import from alpine main
1 files changed, 30 insertions(+), 0 deletions(-)

A sr.ht/py3-wcag-contrast-ratio/APKBUILD
A sr.ht/py3-wcag-contrast-ratio/APKBUILD => sr.ht/py3-wcag-contrast-ratio/APKBUILD +30 -0
@@ 0,0 1,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
"