summaryrefslogtreecommitdiff
path: root/community/py3-rdflib/APKBUILD
blob: fbd14a34dfced9e4d8870d4d517d1bf9de5e4cea (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
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=py3-rdflib
_pyname=rdflib
pkgver=6.1.1
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"
license="BSD-3-Clause"
depends="py3-isodate py3-parsing"
checkdepends="py3-pytest 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 failing test
	pytest --ignore="test/test_so_69984830.py"
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
049608dc37dba929eac1e40431885d319311f27be9fddc292d768e3703927e61a646a73137e4a1eaa16836cfba4606ea2cfd8fe3a86cfbf10e3271cee2ee251f  rdflib-6.1.1.tar.gz
"