aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-rdflib/APKBUILD
blob: 2a02ab40c620950ec31b22222eecbf6b24b4344b (plain) (blame)
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
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=py3-rdflib
_pyname=rdflib
pkgver=6.0.2
pkgrel=1
pkgdesc="A Python library for working with RDF, a simple yet powerful language for representing information"
url="https://rdflib.readthedocs.org/"
arch="noarch !s390x !x86" # tests fail with segfault
license="BSD-3-Clause"
depends="py3-isodate py3-parsing"
checkdepends="py3-nose py3-html5lib py3-sparqlwrapper py3-doctest-ignore-unicode py3-requests"
makedepends="py3-setuptools"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# exclude test that can't find csv2rdf from itself and berkeleydb tests
	nosetests --exclude "test_csv2rdf" --exclude "test_store_berkeleydb"
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
0d14902d24582aad01289f5265feba3c533bbf5a0928b2e1032ba0af16d16cce46a92bde0f01ec2980351c1c13fe2cf4113445d2731e04400f0c20de73efa050  rdflib-6.0.2.tar.gz
"