Date: Friday, April 7, 2023 @ 07:11:24
Author: felixonmars
Revision: 1440785
archrelease: copy trunk to community-staging-any
Added:
python-odfpy/repos/community-staging-any/
python-odfpy/repos/community-staging-any/PKGBUILD
(from rev 1440782, python-odfpy/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-odfpy/repos/community-staging-any/PKGBUILD (from rev 1440782,
python-odfpy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 07:11:24 UTC (rev 1440785)
@@ -0,0 +1,31 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+# Maintainer: Brett Cornwall <[email protected]>
+# Contributor: Eduardo Parra Mazuecos <[email protected]>
+
+pkgname=python-odfpy
+pkgver=1.4.2
+pkgrel=4
+pkgdesc='Python API and tools to manipulate OpenDocument files'
+arch=('any')
+url='https://github.com/eea/odfpy'
+license=('Apache' 'GPL')
+depends=('python-defusedxml')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
'python-wheel')
+checkdepends=('python-pytest')
+source=("https://github.com/eea/odfpy/archive/release-$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('24ad087f38031b2fe60bf22811b9550887afe1cfdea80672d6573387c3025583')
+
+build() {
+ cd odfpy-release-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd odfpy-release-$pkgver
+ PYTHONPATH=. pytest
+}
+
+package() {
+ cd odfpy-release-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*whl
+}