[arch-commits] Commit in (4 files)
George Rawlinson
grawlinson at gemini.archlinux.org
Tue Apr 12 01:54:03 UTC 2022
Date: Tuesday, April 12, 2022 @ 01:54:03
Author: grawlinson
Revision: 1185921
addpkg: python-pydyf 0.1.2-3
Added:
python-pydyf/
python-pydyf/repos/
python-pydyf/trunk/
python-pydyf/trunk/PKGBUILD
----------+
PKGBUILD | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
Added: python-pydyf/trunk/PKGBUILD
===================================================================
--- python-pydyf/trunk/PKGBUILD (rev 0)
+++ python-pydyf/trunk/PKGBUILD 2022-04-12 01:54:03 UTC (rev 1185921)
@@ -0,0 +1,61 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=python-pydyf
+pkgver=0.1.2
+pkgrel=3
+pkgdesc='A low-level PDF generator'
+arch=('any')
+url='https://www.courtbouillon.org/pydyf'
+license=('BSD')
+depends=('python')
+makedepends=(
+ 'git'
+ 'python-build'
+ 'python-flit-core'
+ 'python-installer'
+)
+checkdepends=(
+ 'python-pytest'
+ 'python-pillow'
+ 'ghostscript'
+)
+_commit='9dd8e99b0093dad2b34fbc1a348c7e144cba4e4a'
+source=("$pkgname::git+https://github.com/CourtBouillon/pydyf.git#commit=$_commit")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ # thou shalt not lint coding style in integration tests
+ sed -i 's/--isort --flake8 --cov --no-cov-on-fail//' pyproject.toml
+}
+
+build() {
+ cd "$pkgname"
+
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "$pkgname"
+
+ # skip failing tests
+ pytest \
+ --deselect tests/test_pydyf.py::test_transform \
+ --deselect tests/test_pydyf.py::test_text
+}
+
+package() {
+ cd "$pkgname"
+
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
More information about the arch-commits
mailing list