[arch-commits] Commit in (4 files)

Caleb Maclennan alerque at gemini.archlinux.org
Thu Jul 7 07:35:05 UTC 2022


    Date: Thursday, July 7, 2022 @ 07:35:04
  Author: alerque
Revision: 1247586

Initial add of python-inflate64, new dependency for python-py7zr

Added:
  python-inflate64/
  python-inflate64/repos/
  python-inflate64/trunk/
  python-inflate64/trunk/PKGBUILD

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Added: python-inflate64/trunk/PKGBUILD
===================================================================
--- python-inflate64/trunk/PKGBUILD	                        (rev 0)
+++ python-inflate64/trunk/PKGBUILD	2022-07-07 07:35:04 UTC (rev 1247586)
@@ -0,0 +1,34 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+pkgname=python-inflate64
+_pyname=${pkgname#python-}
+pkgver=0.1.3
+pkgrel=1
+pkgdesc='decompression of deflate64, enhanced deflate and compression algorithm'
+arch=(x86_64)
+url="https://github.com/miurahr/${_pyname}"
+license=(LGPL)
+depends=(python)
+makedepends=(python-{build,installer,wheel}
+             python-setuptools-scm)
+checkdepends=(python-pytest)
+_archive="$_pyname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
+sha256sums=('8acfaa2057d9d229482f6e63af2fc9502716bef8ed287065697fcc8b0024aabe')
+
+build(){
+	cd "$_archive"
+	python -m build -wn
+}
+
+check() {
+	cd "$_archive"
+	local _pyver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+	export PYTHONPATH="$PWD/build/lib.linux-$CARCH-$_pyver"
+	python -m pytest tests
+}
+
+package() {
+	cd "$_archive"
+	python -m installer -d "$pkgdir" dist/*.whl
+}



More information about the arch-commits mailing list