upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-email-validator / trunk / PKGBUILD
blob0aad484fa22b66edb258cb4b94f947b6ebe06c68
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
4 pkgname=python-email-validator
5 pkgver=1.3.1
6 pkgrel=2
7 pkgdesc="A robust email address syntax and deliverability validation library"
8 arch=('any')
9 url="https://github.com/JoshData/python-email-validator"
10 license=('custom:CC0')
11 depends=('python-dnspython' 'python-idna')
12 makedepends=('python-setuptools')
13 checkdepends=('python-pytest')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/JoshData/python-email-validator/archive/v$pkgver.tar.gz")
15 sha512sums=('7806ef35c07cf0cfef3d8c6c7fe6dd3cb58da091a134b57d879a2cfcdf6425f8729ab8b03194135749ae47b369da47434c1d130432cfaa8eeaf5d07149c15dc2')
17 build() {
18   cd python-email-validator-$pkgver
19   python setup.py build
22 check() {
23   cd python-email-validator-$pkgver
24   python -m pytest
27 package() {
28   cd python-email-validator-$pkgver
29   python setup.py install --root="$pkgdir/" --optimize=1
30   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
33 # vim:set ts=2 sw=2 et: