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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 16:46:41 UTC 2021


    Date: Tuesday, November 30, 2021 @ 16:46:41
  Author: felixonmars
Revision: 1057845

archrelease: copy trunk to community-staging-any

Added:
  python-importlib-metadata/repos/community-staging-any/
  python-importlib-metadata/repos/community-staging-any/PKGBUILD
    (from rev 1057844, python-importlib-metadata/trunk/PKGBUILD)

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

Copied: python-importlib-metadata/repos/community-staging-any/PKGBUILD (from rev 1057844, python-importlib-metadata/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 16:46:41 UTC (rev 1057845)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-importlib-metadata
+pkgver=4.8.1
+pkgrel=2
+pkgdesc="Read metadata from Python packages"
+url="https://importlib-metadata.readthedocs.io"
+license=('Apache')
+arch=('any')
+depends=('python-zipp')
+makedepends=('python-setuptools-scm' 'python-toml' 'python-wheel')
+checkdepends=('python-pip' 'python-pytest' 'python-importlib_resources'
+              'python-pyfakefs' 'python-tests')
+source=("https://github.com/python/importlib_metadata/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('a183a16511b4bb5984474684911d7b038f8714049797e9e92ab2b0264c492f55a3c894fdd516da035465ca098b4cfe259eb1bebff74861756819bfb5a54ca198')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+prepare() {
+  # remove pytest-perf warmup to be able to drop its dependency
+  rm importlib_metadata-$pkgver/exercises.py
+}
+
+build() {
+  cd importlib_metadata-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd importlib_metadata-$pkgver
+  python -m pytest -k 'not test_find_local'
+}
+
+package_python-importlib-metadata() {
+  cd importlib_metadata-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list