blob: 543ee69fc70fdf577688168738a0fa60b7687d6a (
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
|
# Maintainer: envolution
# Contributor: C.Grace <rubbermetal@yahoo.com>
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=python-pptx
_pypiname=${pkgname}
pkgver=1.0.2
pkgrel=4
pkgdesc="A Python library for creating and updating PowerPoint (.pptx) files"
url="https://github.com/scanny/python-pptx"
arch=('any')
license=('MIT')
depends=(
python
python-pillow
python-behave
python-docutils
python-lxml
python-sphinx
python-typing_extensions
python-xlsxwriter
)
checkdepends=(
python-pyparsing
python-pytest
)
makedepends=('python-build' 'python-setuptools' 'python-installer' 'python-wheel')
source=(${_pypiname}-${pkgver}.tar.gz::"https://github.com/scanny/python-pptx/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('1eddfbb81fa264345a205f53714d0ee0c544bada7d7e866b8d531bc7d4a30989')
build() {
cd "${_pypiname}-${pkgver}"
python -m build --wheel --no-isolation
}
check() {
cd "${_pypiname}-${pkgver}"
PYTHONPATH=src \
python -m pytest
}
package() {
cd "${_pypiname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
|