blob: 4bbd49b7a3ce327ab19399960149c11c4b4e59a0 (
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
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: envolution
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=python-mammoth
pkgver=1.9.0
pkgrel=2
pkgdesc="Convert Word documents (.docx files) to HTML"
arch=(any)
url="https://github.com/mwilliamson/python-mammoth"
license=(MIT)
depends=(
python
python-cobble
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
checkdepends=(
# puthon-funk
# python-pytest too many of these don't exist yet
# python-precisely
# python-pyflakes
# python-spur.local
# python-tempman
)
depends=(python)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mwilliamson/python-mammoth/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('d5cde017a145dcaa8e0f5e09aa9caebd1db8b5b827b032eec82ef69708341a65')
prepare() {
cd "$pkgname-$pkgver"
cp README.md README
}
build() {
cd "$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
check() {
cd "$pkgname-$pkgver"
# python -m pytest # missing modules to perform tests
}
package() {
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
# vim:set ts=2 sw=2 et:
|