summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9cbf4bed54554243111e2fc439fdb07b769b1df (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
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname=('python-traittypes')
_module='traittypes'
pkgver='0.2.1'
pkgrel=1
pkgdesc="Traitlet types for NumPy, SciPy and friends."
url="https://github.com/jupyter-widgets/traittypes"
depends=('python'
    'python-traitlets'
    'python-numpy'
    'python-pandas')
checkdepends=('python-pytest' 'python-xarray')
makedepends=('python-setuptools')
license=('BSD')
arch=('any')
source=("https://github.com/jupyter-widgets/traittypes/archive/${pkgver}.tar.gz")
sha256sums=('f498c418d04551ea3b21fd97d1f3dcfbc114a672231580bb4e044a188f46efeb')

build() {
    cd "${srcdir}/${_module}-${pkgver}"
    python setup.py build
}

package() {
    cd "${srcdir}/${_module}-${pkgver}"
    install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}

check() {
    cd "${srcdir}/${_module}-${pkgver}"
    python -m unittest
}