summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 617ee501ca640a800dd63a91b565443e0b8e24a9 (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
35
36
37
38
39
# Maintainer: Chris Gorman <chrisjohgorman@gmail.com>

pkgname=python-sigmf
_name=${pkgname#python-}
pkgver=1.2.9
_commit=d4031c0aef65bb08abf55fe0714f41f5e80c55a5
pkgrel=2
pkgdesc='Python package for Signal Metadata Format (SigMF)'
url='https://github.com/sigmf/sigmf-python'
license=('LGPL3')
arch=('any')
depends=('python' 'python-jsonschema' 'python-numpy')
makedepends=('git' 'python-build' 'python-installer' 'python-pytest' 'python-setuptools' 'python-setuptools-scm' 'python-wheel')
checkdepends=('python-hypothesis')
source=("$pkgname::git+$url.git#commit=$_commit"
        0001-packages-sigmf.apps.patch)
sha512sums=('4d19a70eff9e2c18b0f86fabd626eb4785ff5fe5ec8bbcfe72a1568b81fd1d8a20b98e448ecdf6713feb7234c44a3d332b63aa364ba10a01d60404e710a3d3f0'
            'a32af33497db9dc75684ba584833c58b9a8751c17335bbdf7c6defbd79078926f8beab0645396711f9a74279b5bc869de0f5cc92651173666b093daf8fe17be8')

prepare() {
    cd "${pkgname}"
    patch -Np1 -i ../0001-packages-sigmf.apps.patch
}

build() {
    ln -s "${pkgname}" "$_name-$pkgver"
    cd "$_name-$pkgver"
    python -m build --wheel --no-isolation
}

check() {
    cd "$_name-$pkgver"
    pytest
}

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