Date: Saturday, April 8, 2023 @ 22:42:32
  Author: dvzrv
Revision: 1443017

archrelease: copy trunk to community-staging-any

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

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

Copied: python-stone/repos/community-staging-any/PKGBUILD (from rev 1443016, 
python-stone/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-08 22:42:32 UTC (rev 1443017)
@@ -0,0 +1,48 @@
+# Maintainer:
+
+pkgname=python-stone
+_name=${pkgname#python-}
+pkgver=3.3.1
+pkgrel=3
+pkgdesc='The Official API Spec Language for Dropbox API V2'
+arch=(any)
+url='https://github.com/dropbox/stone'
+license=(MIT)
+depends=(python python-ply python-six)
+makedepends=(
+  python-build
+  python-installer
+  python-setuptools
+  python-wheel
+)
+checkdepends=(
+  python-coverage
+  python-pytest
+  python-pytest-runner
+)
+source=($url/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('dc5aff3fad1333188d4ddb4eee0a19d31e6262bb3cdf10c0bbdaeb309ff91a52')
+
+prepare() {
+  sed -e 's|== 5\.2\.0|>= 5.2.0|' -i $_name-$pkgver/setup.py # Unpin 
pytest-runner version
+
+  # upstream doesn't seem to care about Python 3.11 compat: 
https://github.com/dropbox/stone/issues/288
+  sed -e 's/getargspec/getfullargspec/' -i 
$_name-$pkgver/$_name/frontend/ir_generator.py
+}
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  pytest -vv
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}

Reply via email to