Date: Saturday, April 8, 2023 @ 08:05:55
Author: felixonmars
Revision: 1442159
archrelease: copy trunk to community-staging-any
Added:
python-scramp/repos/community-staging-any/
python-scramp/repos/community-staging-any/PKGBUILD
(from rev 1442156, python-scramp/trunk/PKGBUILD)
python-scramp/repos/community-staging-any/keys/
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-scramp/repos/community-staging-any/PKGBUILD (from rev 1442156,
python-scramp/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-08 08:05:55 UTC (rev 1442159)
@@ -0,0 +1,34 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+
+pkgname=python-scramp
+pkgver=1.4.4
+pkgrel=2
+pkgdesc="Python implementation of the SCRAM protocol"
+arch=(any)
+url='https://github.com/tlocke/scramp'
+license=("custom:MIT No Attribution")
+depends=(python python-asn1crypto)
+makedepends=(python-build python-installer python-setuptools
python-versioningit python-wheel)
+checkdepends=(python-pytest python-pytest-mock python-passlib)
+source=("https://files.pythonhosted.org/packages/source/s/scramp/scramp-$pkgver.tar.gz"{,.asc})
+sha256sums=('b7022a140040f33cf863ab2657917ed05287a807b917950489b89b9f685d59bc'
+ 'SKIP')
+validpgpkeys=(
+ 'D5681B7EC7292511C4CC1450892B00AB699851E8' # Tony Locke
<[email protected]>, proven by https://keybase.io/tlocke
+)
+
+build() {
+ cd scramp-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd scramp-$pkgver
+ python -m pytest test
+}
+
+package() {
+ cd scramp-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}