[arch-commits] Commit in python-inflate64/repos (2 files)

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


    Date: Thursday, July 7, 2022 @ 07:35:17
  Author: alerque
Revision: 1247587

archrelease: copy trunk to community-x86_64

Added:
  python-inflate64/repos/community-x86_64/
  python-inflate64/repos/community-x86_64/PKGBUILD
    (from rev 1247586, python-inflate64/trunk/PKGBUILD)

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

Copied: python-inflate64/repos/community-x86_64/PKGBUILD (from rev 1247586, python-inflate64/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-07-07 07:35:17 UTC (rev 1247587)
@@ -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