summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f37a46a3f31125e08b946cbe92d4db8a9f3a992c (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
# Maintainer: Clemens Brunner <clemens dot brunner at gmail dot com>
pkgname=python-pymatreader
_name=${pkgname#python-}
pkgver=1.2.3
pkgrel=1
pkgdesc="Python reader for MATLAB .mat files"
arch=('any')
url="https://pymatreader.readthedocs.io/en/latest/"
license=('BSD-2-Clause')
depends=(
    'python'
    'python-numpy'
    'python-scipy'
    'python-h5py'
    'python-xmltodict'
)
makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-hatch-regex-commit')
source=(https://files.pythonhosted.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz)
sha256sums=('c64cf87b534a6a44389da061dc7af702dec38ef0423c325fc4208d4c81570baa')

build() {
    cd "$srcdir/$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}