summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6dbc9d1f7ab224cfaa2f65df0ce0c08178f399c0 (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
# Maintainer: Will Handley <wh260@cam.ac.uk>
pkgname=python-pyannote.metrics
_pyname=pyannote_metrics
pkgver=4.0.0
pkgrel=1
pkgdesc='Evaluation metrics for speaker diarisation, segmentation and detection (pyannote.metrics)'
arch=('any')
url='https://github.com/pyannote/pyannote-metrics'
license=('MIT')
depends=(
    'python>=3.10'
    'python-numpy'
    'python-pandas'
    'python-pyannote.core'      # AUR (ours)
    'python-pyannote.database'  # AUR (ours)
    'python-scikit-learn'
    'python-scipy'
)
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz")
sha256sums=('aec037eb7ca4c0ad5c5bbcc19bc04e9acf24ba42c95f025497378e31db6a0ff4')

build() {
    cd "$_pyname-$pkgver"
    python -m build --wheel --no-isolation
}

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