[arch-commits] Commit in python-klein/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Oct 26 06:41:39 UTC 2019
Date: Saturday, October 26, 2019 @ 06:41:38
Author: foutrelis
Revision: 520302
archrelease: copy trunk to community-staging-any
Added:
python-klein/repos/community-staging-any/
python-klein/repos/community-staging-any/PKGBUILD
(from rev 520301, python-klein/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-klein/repos/community-staging-any/PKGBUILD (from rev 520301, python-klein/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-26 06:41:38 UTC (rev 520302)
@@ -0,0 +1,39 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Contributor: xRemaLx <anton.komolov at gmail.com>
+
+pkgname=python-klein
+pkgver=19.6.0
+pkgrel=2
+arch=(any)
+pkgdesc='A web micro-framework built on werkzeug and twisted.web'
+url='https://github.com/twisted/klein'
+license=(MIT)
+# incremental is listed in both setup_requires and install_requires
+depends=(python python-attrs python-hyperlink python-incremental python-six
+ python-tubes python-twisted python-werkzeug python-zope-interface)
+makedepends=(python-setuptools python-incremental)
+checkdepends=(python-hypothesis python-mock python-treq)
+source=("https://github.com/twisted/klein/archive/$pkgver/klein-$pkgver.tar.gz")
+sha512sums=('849631f121449556c33a45dcc5b909339730b50f224cd52aadd1e88b1cfe11ef67c03387ef2fc66517d56251001af161b72b518981d36246c741cc381750858f')
+
+prepare() {
+ cd klein-$pkgver
+ # https://github.com/twisted/klein/pull/286
+ sed -i '/"typing"/d' setup.py
+}
+
+build() {
+ cd klein-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd klein-$pkgver
+ PYTHONPATH=src trial3 klein
+}
+
+package() {
+ cd klein-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
More information about the arch-commits
mailing list