upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-uproot-methods / trunk / PKGBUILD
blobb97dce0bd24e00b56494d6f6c77693401f110d85
1 # Maintainer: Konstantin Gizdov <arch at kge dot pw>
3 _pkgname=uproot-methods
4 pkgname="python-${_pkgname}"
5 pkgver=0.10.1
6 pkgrel=3
7 pkgdesc="Pythonic mix-ins for ROOT classes"
8 arch=('any')
9 makedepends=('python-setuptools')
10 depends=('python-awkward' 'python-numpy')
11 checkdepends=('python-awkward' 'python-pytest')
12 url="https://github.com/scikit-hep/${_pkgname}"
13 license=('BSD')
15 source=("${pkgname}::${url}/archive/${pkgver}.zip")
16 sha256sums=('c15d427867ee469a68d2c50adfb4fc309ae53b660142d266c85543ee1333eec3')
18 get_pyver () {
19     python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))'
22 build() {
23     cd "${srcdir}/uproot3-methods-${pkgver}"
24     python setup.py build
27 check() {
28     cd "${srcdir}/uproot3-methods-${pkgver}"
29     pytest
32 package() {
33     cd "${srcdir}/uproot3-methods-${pkgver}"
35     python setup.py install --root="${pkgdir}/" --optimize=1
37     install -D LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
38     install -D README.rst "${pkgdir}/usr/share/${pkgname}/README.rst"
39     ln -s "/usr/lib/python$(get_pyver)/site-packages/uproot3_methods" "${pkgdir}/usr/lib/python$(get_pyver)/site-packages/uproot_methods"