blob: cf838cfa494a214be7eecff166a43f5f2254394f (
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
|
pkgbase='python-unstructured'
pkgname=('python-unstructured')
_module='unstructured'
pkgver=0.11.2
pkgrel=1
pkgdesc="A library that prepares raw documents for downstream ML tasks."
url="https://github.com/Unstructured-IO/unstructured"
depends=(python
python-backoff
python-beautifulsoup4
python-chardet
python-dataclasses-json
python-emoji
python-filetype
python-langdetect
python-lxml
python-nltk
python-numpy
python-python-iso639
python-magic
python-rapidfuzz
python-requests
python-tabulate
python-typing_extensions
python-wrapt
)
makedepends=('python-build' 'python-installer' 'python-wheel')
license=('Apache')
arch=('any')
source=("https://github.com/Unstructured-IO/unstructured/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('c9472de469c0e46a87dd83c83963eb881260ed9667625942b321c0ed253e3c07')
build() {
cd "${srcdir}/${_module}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
depends+=()
cd "${srcdir}/${_module}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|