Date: Saturday, April 8, 2023 @ 03:49:41
Author: felixonmars
Revision: 1441679
archrelease: copy trunk to community-staging-x86_64
Added:
python-clevercsv/repos/community-staging-x86_64/
python-clevercsv/repos/community-staging-x86_64/PKGBUILD
(from rev 1441675, python-clevercsv/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-clevercsv/repos/community-staging-x86_64/PKGBUILD (from rev
1441675, python-clevercsv/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-08 03:49:41 UTC (rev 1441679)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-clevercsv
+pkgver=0.7.5
+_commit=3bdae29f6125682639d5253d62ab782a87349513
+pkgrel=2
+pkgdesc="A Python package for handling messy CSV files"
+url="https://github.com/alan-turing-institute/CleverCSV"
+license=('MIT')
+arch=('x86_64')
+depends=('python-chardet' 'python-regex' 'python-packaging')
+makedepends=('git' 'python-setuptools')
+optdepends=('python-pandas' 'python-tabview' 'python-wilderness'
'python-cchardet')
+checkdepends=('python-pytest-runner' 'python-pandas' 'python-tabview'
'python-wilderness'
+ 'python-cchardet' 'python-termcolor')
+source=("git+https://github.com/alan-turing-institute/CleverCSV.git#commit=$_commit")
+sha512sums=('SKIP')
+
+build() {
+ cd CleverCSV
+ python setup.py build
+}
+
+check() {
+ cd CleverCSV
+ PYTHONPATH="$PWD"/build/lib.linux-$CARCH-3.10 python setup.py pytest
+}
+
+package() {
+ cd CleverCSV
+ python setup.py install --root="$pkgdir" --optimize=1
+ mkdir "$pkgdir"/usr/share
+ mv "$pkgdir"/usr/man "$pkgdir"/usr/share/man
+
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}