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

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 14:57:59 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:57:59
  Author: foutrelis
Revision: 1059609

archrelease: copy trunk to community-staging-any

Added:
  python-py7zr/repos/community-staging-any/
  python-py7zr/repos/community-staging-any/PKGBUILD
    (from rev 1059607, python-py7zr/trunk/PKGBUILD)

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

Copied: python-py7zr/repos/community-staging-any/PKGBUILD (from rev 1059607, python-py7zr/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:57:59 UTC (rev 1059609)
@@ -0,0 +1,35 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=py7zr
+pkgname=python-py7zr
+pkgver=0.16.2
+pkgrel=2
+pkgdesc="Pure python 7-zip library"
+arch=('any')
+url="https://github.com/miurahr/${_pkgname}"
+license=('LGPL')
+depends=('python-pycryptodomex' 'python-texttable' 'python-multivolumefile' 'python-pyppmd' 'python-pyzstd' 'python-brotlicffi')
+optdepends=('python-zstandard: zstd compression')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest-benchmark' 'python-pytest-timeout' 'pyannotate' 'p7zip' 'python-py-cpuinfo')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('e741f0271ebb12551e4a4b57bf01fca226e7136ff301d15c083cd262f8c4a0d6')
+b2sums=('75b74735155b93bbaf835c44a607b8c7b321b8663b873007f7197685d4acdc34328430358eb0f8a9902a48d0c27aeb07a0f6edaef1ddd30d48ed2b4316d4e007')
+
+build(){
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py build
+}
+
+check() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python -m pytest -rsx -m 'not benchmark'
+}
+
+package() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list