From 144f3c02431b8a3d025721d48e6fa9942d2e8f10 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 4 Feb 2022 13:18:00 +0100 Subject: [PATCH] py3-wcag-contrast-ratio: import from alpine main --- sr.ht/py3-wcag-contrast-ratio/APKBUILD | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 sr.ht/py3-wcag-contrast-ratio/APKBUILD diff --git a/sr.ht/py3-wcag-contrast-ratio/APKBUILD b/sr.ht/py3-wcag-contrast-ratio/APKBUILD new file mode 100644 index 0000000..0874255 --- /dev/null +++ b/sr.ht/py3-wcag-contrast-ratio/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Michał Polański +# Maintainer: Michał Polański +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 +" -- 2.45.2