blob: de4839fa84746fd556317192911ee0c7513c762e (
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
48
49
50
51
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-csvw
_name=${pkgname#python-}
pkgver=4.0.0
pkgrel=1
epoch=
pkgdesc="Python library to work with CSVW described tabular data"
arch=('any')
url="https://pypi.org/project/${_name}"
license=(MIT)
groups=()
provides=(${pkgname})
conflicts=(${pkgname})
depends=(
python
python-attrs
python-dateutil
python-babel
python-jsonschema
python-isodate
python-rdflib
python-requests
python-rfc3986
python-termcolor
python-uritemplate
# AUR
python-language-tags
)
makedepends=(
python-build
python-installer
python-wheel
python-setuptools
)
optdepends=()
options=('!strip' '!debug')
source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
noextract=()
sha256sums=('060e9bedf3c274d0fce6d6f7f892a16cc8c72f39c2bc49b69b5f0858fb2f6217')
build() {
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|