summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ac1513a1251cf437ea20f1a1d20f32eaa13472b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: peippo <christoph+aur@christophfink.com>

pkgname="python-tableschema"
_name=${pkgname#python-}
pkgdesc="Parse messy tabular data in various formats"
url="https://github.com/frictionlessdata/tableschema-py"

pkgver=1.15.0
pkgrel=1

arch=("any")
license=("MIT")

makedepends=(
    "python-setuptools"
)
depends=(
    "python"
    "python-click"
    "python-dateutil"
    "python-isodate"
    "python-jsonschema"
    "python-requests"
    "python-rfc3986"
    "python-six"
    "python-tabulator"
)

source=(
    "https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
)
sha256sums=(
    "3b5668a8a73e215967220e3ed7df31135ccf9041d5f94df5c8eebabddecc66ba"
)

build() {
    cd "${srcdir}"/${_name}-${pkgver}
    python setup.py build
}

package() {
    cd "${srcdir}/${_name}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1

    install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

}