summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4bd0490d663bb92cd0a3b387e8a9598667459c94 (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
# Contributor: Daniel Bershatsky <bepshatsky@yandex.ru>

pkgname=python-polara
_pkgname=${pkgname#python-}
pkgver=0.7.3
pkgrel=1
pkgdesc='Fast and flexible recommender systems framework'
arch=('any')
url='https://github.com/evfro/polara'
license=('MIT')
groups=('recsys')
depends=(
  'python-numba'
  'python-numpy'
  'python-scipy'
)
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
optdepends=(
    "python-turicreate: Apple's TuriCreate machine learning library"
    'mymedialite:  Recommender system library for the CLR'
    'python-implicit: Fast Python Collaborative Filtering for Implicit Feedback'
    'python-lightfm: LightFM in Python'
)
source=("$_pkgname-$pkgver.tar.gz::https://github.com/evfro/polara/archive/refs/heads/develop.tar.gz")
sha256sums=('59818bbac0078668f8914c13312788ec923c0d10fee275b6a64afa0b7fdad931')

prepare() {
    cd "$_pkgname-develop"
    sed -i 's/0.7.2.dev/0.7.3/' setup.py
}

build() {
    cd "$_pkgname-develop"
    python -m build -n -w
}

package() {
    python -m installer \
        --compile-bytecode 1 \
        --destdir $pkgdir \
        $srcdir/$_pkgname-develop/dist/$_pkgname-$pkgver-*-*.whl
}