summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 879a536e2a9b16d684c54e36e8f0604b8f0c6752 (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
# Maintainer: Anton Karmanov <a.karmanov@inventati.org>

pkgname='python-sklearn-crfsuite'
_proj_name="${pkgname#python-}"
_proj_name="${_proj_name//-/_}"
pkgver='0.5.0'
pkgrel=1
pkgdesc='CRFsuite wrapper with similar to scikit-learn interface'
arch=(any)
url='https://github.com/TeamHG-Memex/sklearn-crfsuite'
license=('MIT')
depends=(
  'python-tqdm>=2.0'
  'python-six'
  'python-tabulate'
  'python-crfsuite>=0.8.3'
  'python')
optdepends=()
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_proj_name::1}/${_proj_name}/${_proj_name}-${pkgver}.tar.gz")
sha256sums=('136cb941ff5f7ce62a2c378988d1123ac1037241e73999ae404509a2135078e9')
_tardir="${_proj_name}-${pkgver}"

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

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