[arch-commits] Commit in python-http-parser/repos (2 files)

Eli Schwartz eschwartz at archlinux.org
Mon Jul 2 13:23:14 UTC 2018


    Date: Monday, July 2, 2018 @ 13:23:13
  Author: eschwartz
Revision: 349726

archrelease: copy trunk to community-staging-x86_64

Added:
  python-http-parser/repos/community-staging-x86_64/
  python-http-parser/repos/community-staging-x86_64/PKGBUILD
    (from rev 349724, python-http-parser/trunk/PKGBUILD)

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

Copied: python-http-parser/repos/community-staging-x86_64/PKGBUILD (from rev 349724, python-http-parser/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-07-02 13:23:13 UTC (rev 349726)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-http-parser
+pkgname=('python-http-parser' 'python2-http-parser')
+pkgver=0.8.3
+pkgrel=3
+pkgdesc="HTTP request/response parser for Python"
+arch=('x86_64')
+license=('MIT')
+url="http://github.com/benoitc/http-parser"
+makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'git')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("git+https://github.com/benoitc/http-parser.git#tag=$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  rm http-parser/http_parser/parser.c
+  cp -a http-parser{,-py2}
+}
+
+build() {
+  cd "$srcdir/http-parser"
+  python setup.py build
+
+  cd "$srcdir/http-parser-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/http-parser"
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.7:$PYTHONPATH" \
+  py.test testing/
+
+  cd "$srcdir/http-parser-py2"
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" \
+  py.test2 testing/
+}
+
+package_python-http-parser() {
+  depends=('python')
+
+  cd http-parser
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-http-parser() {
+  depends=('python2')
+
+  cd http-parser-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list