[arch-commits] Commit in python-voluptuous/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Tue Nov 30 20:20:57 UTC 2021
Date: Tuesday, November 30, 2021 @ 20:20:57
Author: foutrelis
Revision: 1058073
archrelease: copy trunk to community-staging-any
Added:
python-voluptuous/repos/community-staging-any/
python-voluptuous/repos/community-staging-any/PKGBUILD
(from rev 1058071, python-voluptuous/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-voluptuous/repos/community-staging-any/PKGBUILD (from rev 1058071, python-voluptuous/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 20:20:57 UTC (rev 1058073)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-voluptuous
+pkgver=0.12.2
+pkgrel=2
+pkgdesc="A Python data validation library"
+url="https://github.com/alecthomas/voluptuous"
+license=('BSD')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-nose')
+source=("https://pypi.io/packages/source/v/voluptuous/voluptuous-$pkgver.tar.gz")
+sha512sums=('86193294c1c6a593f6556f23a9a2c093690a06cbdabb7e268db135e36af6a15c113e78f3e05d000276b6ff54b8e17a0a01d589e9232da9eb5320500fdb5757e1')
+
+prepare() {
+ # https://github.com/alecthomas/voluptuous/issues/333
+ rm -r voluptuous-$pkgver/*.egg-info
+
+ # https://github.com/alecthomas/voluptuous/pull/332
+ sed -e "s/'w'/'wb'/" -e "s/.encode('utf-8')//" -e "s/f.write(long_description)/f.write(long_description.encode('utf-8'))/" -i voluptuous-$pkgver/setup.py
+
+ # Python 3.7
+ sed -i '/raise StopIteration/d' voluptuous-$pkgver/voluptuous/schema_builder.py
+}
+
+build() {
+ cd voluptuous-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd voluptuous-$pkgver
+ python setup.py nosetests
+}
+
+package() {
+ cd voluptuous-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
More information about the arch-commits
mailing list