# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-unicodecsv _pkgname=python-unicodecsv pkgver=0.14.1 pkgrel=7 pkgdesc="The unicodecsv is a csv module which supports unicode strings" url="https://github.com/jdunck/python-unicodecsv" arch="noarch" license="custom" # BSD-2-Clause with extra notice depends="python3" makedepends="py3-setuptools" subpackages="$pkgname-doc $pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/jdunck/python-unicodecsv/archive/$pkgver.tar.gz fix-running-tests.patch " builddir="$srcdir/$_pkgname-$pkgver" options="!check" # fails with 3.11 build() { python3 setup.py build } check() { cd build/lib python3 -m unittest unicodecsv/test.py } package() { python3 setup.py install --skip-build --root="$pkgdir" install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE } sha512sums=" 9135c0f3702d60d72b2544476feb9e924b8d592e06d21eca98cd10406de9ecca49bcde9e9bfa7baeb4358dddf86ad737e155355d8b927de5b93912201a8d87b0 py3-unicodecsv-0.14.1.tar.gz 915d244d4206a29ece15e95e9805930f33accb80ae1df9404d57e04ebba22e47ff4f79dcf756bdc44c8ed85be778f70f3272b86a43736b9d4b21302151c6c80e fix-running-tests.patch "