blob: bb87d5d2e9c74463b687dd4335fc9f37993396e6 (
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
40
41
42
43
44
45
46
47
48
|
# Maintainer: Claudia Pellegrino <aur ät cpellegrino.de>
pkgname=python-norbert
pkgver=0.2.1
pkgrel=2
pkgdesc='Painless Wiener filters for audio separation'
arch=('any')
url='https://github.com/sigsep/norbert'
license=('MIT')
depends=('python' 'python-numpy' 'python-scipy')
checkdepends=('python-pytest')
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
)
source=(
"${pkgname}-${pkgver}.tar.gz::https://github.com/sigsep/norbert/archive/v${pkgver}.tar.gz"
)
sha512sums=(
'd10abce6d06377def4b4fcec22ffe1a0bde74600b6d90f6a87d9f726284ba895c26af088ba78b537b82bc4797af5d5d924e8deeea3f88e3af119c1f9396058ea'
)
prepare() {
cd "${srcdir}/${pkgname#python-}-${pkgver}"
# Compatibility fix for setuptools
sed -i -e 's/description-file/description_file/' setup.cfg
}
build() {
cd "${srcdir}/${pkgname#python-}-${pkgver}"
python -m build --wheel --no-isolation
}
check() {
cd "${srcdir}/${pkgname#python-}-${pkgver}"
python -m pytest -o addopts= # Exclude doctests and pep8
}
package() {
cd "${srcdir}/${pkgname#python-}-${pkgver}"
python -I -m installer --destdir="${pkgdir}" dist/*.whl
install -D -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
}
|