archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-csv23 / trunk / PKGBUILD
blobcd0d8d1d65129c9df02810ae61d0a7ee3acfb602
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-csv23
4 pkgver=0.3.4
5 pkgrel=2
6 pkgdesc="Python 3 unicode CSV compatibility layer"
7 url="https://github.com/xflr6/csv23"
8 license=('MIT')
9 arch=('any')
10 depends=('python')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest' 'python-mock' 'python-pytest-mock')
13 source=("https://github.com/xflr6/csv23/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('ff7fc4a488316fb19501549bb6db56aee830348cddedca99bc8d452f85b787907f4831a5b4371375d45f9ada47b23fc33e8105177431b576fd228d8fce81354d')
16 prepare() {
17   cd csv23-$pkgver
18   sed -i '/--cov/d' setup.cfg
21 build() {
22   cd csv23-$pkgver
23   python setup.py build
26 check() {
27   cd csv23-$pkgver
28   python -m pytest
31 package() {
32   cd csv23-$pkgver
33   python setup.py install --root="$pkgdir" --optimize=1
35   install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/