blob: 68f8470143030ded7b87473d9b22633f1c0b793e (
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.8.0
pkgrel=1
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=('3f5204fe95e3a39129f87a8c18b34090cabd0e7e5bc1d8700070dbabc8cc3c47')
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:
|