summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d34c9412c4396c9269350db401fb64e8e4d53f2 (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
# Maintainer: Sidney Kuyateh <autinerd-arch@kuyateh.eu>

pkgname=python-spdx-tools
_name=tools-python
pkgver=0.8.3
pkgrel=1
pkgdesc='A Python library to parse, validate and create SPDX documents.'
url='https://github.com/spdx/tools-python'
makedepends=(python-build python-installer python-wheel)
depends=(python python-click python-yaml python-xmltodict python-rdflib python-beartype python-uritools python-license-expression python-ply python-semantic-version)
checkdepends=(python-pytest python-pyshacl python-tzdata)
license=('GPL2')
arch=('any')
source=("git+https://github.com/spdx/tools-python.git#tag=v${pkgver}")
sha512sums=('SKIP')

build() {
    cd "$srcdir/$_name"
    python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/$_name"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}