blob: 32d9265d43302eec0e2982a07cdde0b8b4c7294f (
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
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
pkgname=python-unstructured
pkgver=0.27.25
pkgrel=1
pkgdesc="A library that prepares raw documents for downstream ML tasks."
license=(Apache-2.0)
arch=(any)
url="https://github.com/Unstructured-IO/unstructured"
depends=(python)
makedepends=(python-build python-installer python-hatchling python-wheel)
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('be6203b206b1b7dd4f377b7a0649953ed6403cb8ffcc81af813f6b2c92f0d302')
build() {
cd "unstructured-$pkgver"
python -m build --wheel --no-isolation
}
package() {
depends+=(
python-beautifulsoup4
python-charset-normalizer
python-click
python-emoji
python-filelock
python-filetype
python-langdetect
python-lxml
python-magic
python-numpy
python-oxmsg
python-psutil
python-python-iso639
python-rapidfuzz
python-regex
python-requests
python-spacy
python-tqdm
python-typing_extensions
python-unstructured-client
python-wrapt)
cd "unstructured-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|