aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pyfavicon/APKBUILD
blob: 3b337bb674045cc57edfa1cb7c8b05fb81b18fc7 (plain) (blame)
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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-pyfavicon
pkgver=0.1.1
pkgrel=1
pkgdesc="Async favicon fetcher for Python3"
url="https://github.com/bilelmoussaoui/pyfavicon"
arch="noarch"
license="MIT"
depends="py3-aiohttp py3-pillow py3-beautifulsoup4 py3-idna"
makedepends="python3-dev py3-setuptools"
checkdepends="py3-pytest-cov py3-coveralls"
options="!check" # Test module can't be found
source="https://pypi.io/packages/source/p/pyfavicon/pyfavicon-$pkgver.tar.gz"
builddir="$srcdir/pyfavicon-$pkgver"

replaces="py3-favicon" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="c9f9bf27e2eebb553a1ae53a69a03d3427ca147e217179703d3c316e78c68157b31c8fcc0a98c21ee38c4739ba82b91f1167560b82f908d58b123d0090d60274  pyfavicon-0.1.1.tar.gz"