archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-re-assert / trunk / PKGBUILD
blobb33d8d4cc7ea7b34494ab9e813cb841051371aec
1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
3 pkgname=python-re-assert
4 _name=${pkgname#python-}
5 pkgver=1.1.0
6 pkgrel=5
7 pkgdesc="Provides a helper class to make assertions of regexes simpler"
8 arch=('any')
9 url="https://github.com/asottile/re-assert"
10 license=('MIT')
11 depends=('python' 'python-regex')
12 makedepends=('python-setuptools')
13 checkdepends=('python-pytest')
14 source=($pkgname-$pkgver.tar.gz::https://github.com/asottile/re-assert/archive/v$pkgver.tar.gz)
15 sha256sums=('01c4a849ed520923e4bab9afdf73b5f2698c4f92ad7f580ccb3f68ea79c69c0c')
17 build() {
18   cd "$_name-$pkgver"
19   python setup.py build
22 check() {
23   cd "$_name-$pkgver"
24   pytest
27 package() {
28   cd "$_name-$pkgver"
29   python setup.py install --root="$pkgdir" -O1
30   install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
33 # vim:set ts=2 sw=2 et: