102.11.0-1
[arch-packages.git] / python-rdflib / trunk / PKGBUILD
blob74f2fec2c004d1fab1e8ca4302c250c2b12fe96c
1 # Maintainer:
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: Leif Warner <abimelech@gmail.com>
5 pkgname=python-rdflib
6 pkgver=6.2.0
7 pkgrel=2
8 pkgdesc="A Python library for working with RDF, a simple yet powerful language for representing information"
9 arch=('any')
10 url="https://github.com/RDFLib/rdflib"
11 license=('BSD')
12 depends=('python-isodate' 'python-pyparsing' 'python-setuptools')
13 optdepends=('python-html5lib: for html support')
14 checkdepends=('python-pytest-cov' 'python-six' 'python-html5lib' 'python-networkx'
15               'python-doctest-ignore-unicode' 'python-pip')
16 source=(https://github.com/RDFLib/rdflib/archive/$pkgver/$pkgname-$pkgver.tar.gz)
17 sha512sums=('8177c50e9c2d48859a061dfee24c3560b8f979bc306b3d940a9251ec130e3a324bbad474f4fa7ced5e11522d3bd4e13931461bf106f31177fd972806968d8245')
19 build() {
20   cd rdflib-$pkgver
21   python setup.py build
24 check() {
25   cd rdflib-$pkgver
26   pytest
29 package() {
30   cd rdflib-$pkgver
31   python setup.py install --root="$pkgdir" --optimize=1
32   install -Dm644  LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"