aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-email-validator/APKBUILD
blob: 23df79b6ec83045c06ab9d011fac216f8042155d (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
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-email-validator
_pkgname=python-email-validator
pkgver=1.1.0
pkgrel=0
pkgdesc="A robust email syntax and deliverability validation library"
url="https://github.com/JoshData/python-email-validator"
arch="noarch"
license="CC0-1.0"
depends="py3-dnspython py3-idna"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/JoshData/$_pkgname/archive/v$pkgver.tar.gz"
builddir=$srcdir/$_pkgname-$pkgver

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

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" py.test-3
}

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

sha512sums="9eb3636298dcfc71aa2dada3e10044966181d1a6e5f7cd397a3143c82a855760cf69b129b573f01d75702b96f78da9a9799350bdf6eb8f12cfd7daa013e71604  py3-email-validator-1.1.0.tar.gz"