summaryrefslogtreecommitdiff
path: root/community/py3-orcid/APKBUILD
blob: 296fe563aa73bf8d5ec1115989df4f942cf7d86c (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
# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-orcid
_pkgorig=orcid
pkgver=1.0.3
pkgrel=2
pkgdesc="Python wrapper around ORCID API"
url="https://github.com/ORCID/python-orcid"
arch="noarch"
license="BSD-3-Clause"
depends="
	python3
	py3-beautifulsoup4
	py3-html5lib
	py3-lxml
	py3-requests
	py3-simplejson
	"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/o/orcid/orcid-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 setup.py build
}

# tests disabled due to the network tests (API); use smoke tests instead
check() {
	PYTHONPATH=build/lib python3 -c "from orcid import *"
}

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

sha512sums="
d50f744cf3c02355d5f5429213a264b062b6a9592030880ec2d62e9039c4527afac2ced502074d1e8ae4f1071136dc136525e1cb8326bc666bee0d9c156e1570  py3-orcid-1.0.3.tar.gz
"