Date: Friday, April 7, 2023 @ 04:04:52
Author: felixonmars
Revision: 472871
archrelease: copy trunk to staging-x86_64
Added:
python-wrapt/repos/staging-x86_64/
python-wrapt/repos/staging-x86_64/PKGBUILD
(from rev 472870, python-wrapt/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-wrapt/repos/staging-x86_64/PKGBUILD (from rev 472870,
python-wrapt/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2023-04-07 04:04:52 UTC (rev 472871)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Troy C < rstrox -ta yahoo -tod com >
+
+pkgname=python-wrapt
+pkgver=1.14.1
+pkgrel=2
+pkgdesc="A Python module for decorators, wrappers and monkey patching"
+arch=("x86_64")
+url="https://pypi.python.org/pypi/wrapt"
+license=("BSD")
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://github.com/GrahamDumpleton/wrapt/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('c67e99eb29afeefb2512fb545cd180b8e96f69235d6281edebe62ea5e411188a904a7e683afdda2d6a86cf8b7fd74f79a3c3bec04e19a7c5ef347729bb43f94c')
+
+build() {
+ cd wrapt-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd wrapt-$pkgver
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-311" py.test
+}
+
+package() {
+ cd wrapt-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}