Date: Thursday, January 12, 2023 @ 06:49:11
  Author: felixonmars
Revision: 1383021

extra2community: Moving python-pep517 from extra to community

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

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

Added: python-pep517/trunk/PKGBUILD
===================================================================
--- python-pep517/trunk/PKGBUILD                                (rev 0)
+++ python-pep517/trunk/PKGBUILD        2023-01-12 06:49:11 UTC (rev 1383021)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pep517
+pkgver=0.13.0
+pkgrel=1
+pkgdesc="Wrappers to build Python packages using PEP 517 hooks"
+arch=('any')
+license=('MIT')
+url="https://github.com/takluyver/pep517";
+depends=('python-tomli')
+makedepends=('python-build' 'python-flit-core' 'python-installer')
+checkdepends=('python-mock' 'python-pytest' 'python-testpath' 'python-pip')
+source=("https://pypi.io/packages/source/p/pep517/pep517-$pkgver.tar.gz";)
+sha512sums=('110c62441e0084cb2f0b7310ec2d7bb3e08615d65efbeb84eab953ec21600fc4242ef8611f9cdf74a936c1f9e389f4379d165bb5c7a8bd9efe50ee53c1b8d4e1')
+
+prepare() {
+  cd pep517-$pkgver
+  # Copied from openSUSE: 
+  # Remove what appears to be overly cautious flag
+  # that causes tests to require internet, both here
+  # and the test suites of any dependencies. Tracking at:
+  # https://github.com/pypa/pep517/issues/101
+  sed -i "s/ '--ignore-installed',//" pep517/envbuild.py
+
+  sed -i '/--flake8/d' pytest.ini
+}
+
+build() {
+  cd pep517-$pkgver
+  python -m build --wheel --no-isolation --skip-dependency-check
+}
+
+check() {
+  cd pep517-$pkgver
+  pytest
+}
+
+package() {
+  cd pep517-$pkgver
+  python -m installer --destdir="$pkgdir/" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to