summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ad1cfa1e4abdfbb3fceb9d814de318d55c7e8bd (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
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
pkgname='python-traittypes'
_module='traittypes'
pkgver='0.2.1'
pkgrel=3
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=('git' 'python-setuptools')
license=('BSD')
arch=('any')
source=("git+https://github.com/jupyter-widgets/traittypes.git#commit=af2ebeec9e58b73a12d4cf841bd506d6eadb8868")
sha256sums=('SKIP')

build() {
    cd "${_module}"
    python setup.py build
}

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

check() {
    cd "${_module}"
    sed -i -e "s/np.int/int/" traittypes/tests/test_traittypes.py
    PYTHONPATH=. pytest
}