summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5719ae39fe0fa856c7beb5004238a8b876b9fabb (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
# Maintainer: envolution
# Contributor: C.Grace <rubbermetal@yahoo.com>
# shellcheck shell=bash disable=SC2034,SC2154

pkgname=python-pptx
_pypiname=${pkgname}
pkgver=1.0.2
pkgrel=2
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-behave>=1.2.5' 'flake8>=2.0' 'python-lxml>=3.1.0' 'python-mock>=1.0.1' 'python-typing_extensions'
  'python-pyparsing>=2.0.1' 'python-pillow>=3.3.2' 'python-pytest>=2.5' 'python-xlsxwriter>=0.5.7')
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}"
  # python -m test #uncomment to run tests, will take some hours
}

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: