blob: a0da1eb064ca1ec218dd8d97a24b8e348aa8df84 (
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
49
50
51
52
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-phonemizer
_name=${pkgname#python-}
pkgver=3.4.0
pkgrel=1
epoch=
pkgdesc="Simple text to phones converter for multiple languages"
arch=('any')
url="https://pypi.org/project/${_name}"
license=(MIT)
groups=()
provides=(${pkgname})
conflicts=(${pkgname})
depends=(
python
python-joblib
python-pytest
python-typing_extensions
# AUR
python-dlinfo
python-segments
)
makedepends=(
python-build
python-installer
python-wheel
python-setuptools
)
checkdepends=()
optdepends=()
options=('!strip' '!debug')
source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
noextract=()
sha256sums=('e13231980c50bc671ec0466379ba027260ad9d61929952d8ae9665b3d0f251eb')
build() {
cd "${srcdir}/${_name}-${pkgver}"
mv test phonemizer
install -Dm644 /dev/stdin pytest.ini <<EOF
[pytest]
testpaths = phonemizer/test
pythonpath = phonemizer
EOF
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|