diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 7 insertions, 14 deletions
@@ -1,13 +1,13 @@ # Maintainer: Blair Bonnett <blair dot bonnett at gmail dot com> pkgname=python-numpy-quaternion -pkgver=2019.7.23.15.26.49 -pkgrel=4 +pkgver=2019.9.30.17.47.33 +pkgrel=1 pkgdesc="Add built-in support for quaternions to NumPy" -url="https://github.com/moble/quaternion" +url="https://quaternion.readthedocs.io/" arch=('x86_64') license=('MIT') -depends=('python-numpy>=1.13' 'python-scipy') +depends=('python-numpy' 'python-scipy') optdepends=( "python-numba: speedup of numerical functions" ) @@ -15,18 +15,11 @@ makedepends=('python-setuptools') checkdepends=('python-pytest') source=( "https://files.pythonhosted.org/packages/source/n/numpy-quaternion/numpy-quaternion-$pkgver.tar.gz" - "fix-tests.patch" ) sha256sums=( - '42289bafc3292959173d93736f9c875b5c69d472934f04a76883b7b185adc42e' - '6418231f9ab5e3bc2fe419b65feff18f694cf877c1e744f011bde83250eda655' + '4ebc8e419aff57e6146baadc7c8309e2f3558d9f2c36c62a4813bf9905f59279' ) -prepare() { - cd "numpy-quaternion-$pkgver" - patch --forward --strip=1 --input="$srcdir/fix-tests.patch" -} - build() { cd "numpy-quaternion-$pkgver" package_version="$pkgver" python setup.py build @@ -35,11 +28,11 @@ build() { check() { cd "numpy-quaternion-$pkgver" PYVER=$(python -c 'import sys; print("{}.{}".format(*sys.version_info[:2]))') - PYTHONPATH="$PWD/build/lib.linux-$CARCH-$PYVER" pytest + PYTHONPATH="$PWD/build/lib.linux-$CARCH-$PYVER" PYTHONDONTWRITEBYTECODE=1 pytest } package() { cd "numpy-quaternion-$pkgver" - package_version="$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build + package_version="$pkgver" python setup.py install --root="$pkgdir/" --prefix=/usr --optimize=1 --skip-build install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |