Date: Tuesday, January 17, 2023 @ 19:22:20
  Author: arojas
Revision: 1386756

archrelease: copy trunk to community-any

Added:
  python-rfc3986-validator/repos/
  python-rfc3986-validator/repos/community-any/
  python-rfc3986-validator/repos/community-any/PKGBUILD
    (from rev 1386755, python-rfc3986-validator/trunk/PKGBUILD)

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

Copied: python-rfc3986-validator/repos/community-any/PKGBUILD (from rev 
1386755, python-rfc3986-validator/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD                                (rev 0)
+++ repos/community-any/PKGBUILD        2023-01-17 19:22:20 UTC (rev 1386756)
@@ -0,0 +1,32 @@
+# Maintainer:
+
+_pyname=rfc3986_validator
+pkgname=python-${_pyname/_/-}
+pkgver=0.1.1
+pkgrel=1
+pkgdesc='A pure python RFC3986 validator'
+url="https://github.com/naimetti/rfc3986-validator";
+license=(MIT)
+arch=(any)
+depends=(python-six)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+checkdepends=(python-pytest-runner python-rfc3987 python-hypothesis)
+source=(https://pypi.python.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz)
+sha512sums=('b679e3c1b38d9ecc633d7d9a7179711d5adc50d38a51f28972f668e098058b92ec9f69e947fab7eaa3863377f35c3f13e5fd1ae35da2175a01170f2940360c2f')
+
+build() {
+  cd $_pyname-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_pyname-$pkgver
+  pytest -v
+}
+
+package() {
+  cd $_pyname-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}

Reply via email to