blob: 99b52964b1ebbabf20bda0d6d2fca97c511dc80b (
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
|
# Maintainer: mar77i <mar77i at protonmail dot ch>
pkgname=python-summa-git
pkgver=0.1.0.r6.g985402e
pkgrel=1
pkgdesc="TextRank implementation for text summarization and keyword extraction in Python."
license=(MIT)
arch=(any)
url="https://github.com/summanlp/textrank"
makedepends=(python-setuptools)
depends=(python-scipy)
source=('git+https://github.com/summanlp/textrank.git')
sha1sums=(SKIP)
pkgver() {
cd "$srcdir/textrank"
git describe --long --tags | sed 's/^v//; s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "$srcdir/textrank"
python3 setup.py install --root="$pkgdir/" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
}
check() {
cd "$srcdir/textrank"
python3 -m test.test_keywords
python3 -m test.test_summarizer
}
|