[arch-commits] Commit in python-bleach/repos (2 files)
Eli Schwartz
eschwartz at archlinux.org
Mon Jul 16 17:34:08 UTC 2018
Date: Monday, July 16, 2018 @ 17:34:08
Author: eschwartz
Revision: 360004
archrelease: copy trunk to community-staging-any
Added:
python-bleach/repos/community-staging-any/
python-bleach/repos/community-staging-any/PKGBUILD
(from rev 360003, python-bleach/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: python-bleach/repos/community-staging-any/PKGBUILD (from rev 360003, python-bleach/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-16 17:34:08 UTC (rev 360004)
@@ -0,0 +1,55 @@
+# Maintainer: Johannes Löthberg <johannes at kyriasis.com>
+
+pkgbase=python-bleach
+pkgname=(python-bleach python2-bleach)
+pkgver=2.1.3
+pkgrel=2
+
+pkgdesc="An easy whitelist-based HTML-sanitizing tool"
+url="https://pypi.org/project/bleach/"
+arch=('any')
+license=('Apache')
+makedepends=('python'
+ 'python-setuptools'
+ 'python-html5lib'
+ 'python2'
+ 'python2-setuptools'
+ 'python2-html5lib')
+checkdepends=('python-pytest'
+ 'python2-pytest')
+
+source=(https://pypi.org/packages/source/b/bleach/bleach-$pkgver.tar.gz)
+
+sha256sums=('eb7386f632349d10d9ce9d4a838b134d4731571851149f9cc2c05a9a837a9a44')
+
+prepare() {
+ cp -a bleach-$pkgver{,-python2}
+}
+
+build() {
+ cd "$srcdir"/bleach-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/bleach-$pkgver-python2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/bleach-$pkgver
+ python -m pytest
+
+ cd "$srcdir"/bleach-$pkgver-python2
+ python2 -m pytest
+}
+
+package_python-bleach() {
+ depends=("python-html5lib")
+ cd "$srcdir"/bleach-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-bleach() {
+ depends=("python2-html5lib")
+ cd "$srcdir"/bleach-$pkgver-python2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list