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

Caleb Maclennan alerque at gemini.archlinux.org
Wed Mar 9 10:21:24 UTC 2022


    Date: Wednesday, March 9, 2022 @ 10:21:23
  Author: alerque
Revision: 1145655

archrelease: copy trunk to community-x86_64

Added:
  python-zipfile-deflate64/repos/community-x86_64/
  python-zipfile-deflate64/repos/community-x86_64/PKGBUILD
    (from rev 1145654, python-zipfile-deflate64/trunk/PKGBUILD)

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

Copied: python-zipfile-deflate64/repos/community-x86_64/PKGBUILD (from rev 1145654, python-zipfile-deflate64/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-03-09 10:21:23 UTC (rev 1145655)
@@ -0,0 +1,38 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+pkgname=python-zipfile-deflate64
+_pyname=${pkgname#python-}
+pkgver=0.2.0
+pkgrel=1
+pkgdesc='Extract Deflate64 ZIP archives with Python’s zipfile API'
+arch=(x86_64)
+url="https://github.com/brianhelba/${_pyname}"
+license=(Apache)
+depends=(python)
+makedepends=(python-{build,installer}
+             python-setuptools-scm
+             python-wheel)
+# checkdepends=(python-pytest)
+_archive="$_pyname-$pkgver"
+# No tests in PyPi sources
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz")
+# No version information in archive
+# source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('875a3299de102edf1c17f8cafcc528b1ca80b62dc4814b9cb56867ec59fbfd18')
+
+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