aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-webcolors/APKBUILD
blob: 74961455b7334b6b7dfd14f5fc725a517490082d (plain)
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
31
32
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-webcolors
_pkgname=webcolors
pkgver=1.9.1
pkgrel=1
pkgdesc="A library for working with color names and color value formats"
url="https://github.com/ubernostrum/webcolors"
arch="noarch"
license="BSD-3-Clause"
depends="py3-six"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-runner"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-webcolors" # Backwards compatibility
provides="py-webcolors=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="333f7ff7a6d0eca1eaf73f70be660eeeaa14c85af41ebc93e1a27a3564bf5fc3d51c1f73136befbb88065f56f4d3b5d25935610308302254302f290c389e2628  webcolors-1.9.1.tar.gz"