blob: e4dad9e4e09926bcbc392d1e482d481a382e014a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu >
# Contributor: Daniel Peukert <daniel@peukert.cc>
# Contributor: Felix Yan <felixonmars@archlinux.org>
pkgname='python2-soupsieve'
_distname="${pkgname#python2-}"
pkgver=1.9.6
pkgrel=4
pkgdesc='A CSS4 selector implementation for Beautiful Soup (legacy Python 2 version)'
arch=('any')
url="https://pypi.org/project/${_distname}/${pkgver}/"
license=('MIT')
depends=(
'python2'
'python2-backports.functools_lru_cache'
)
makedepends=('python2-setuptools')
# checkdepends=('python2-pytest' 'python2-beautifulsoup4' 'python2-html5lib' 'python2-lxml')
_tarname="${_distname}-${pkgver}"
source=("${_tarname}.tar.gz::https://github.com/facelessuser/${_distname}/archive/$pkgver.tar.gz")
b2sums=('2bd2f74e6974ad73c79c018f704fef600594c568471062c503a7fb1248e2cc1840011d31550f7573654f015016f0d3272778b0100e4701318a829f916f06698e')
build() {
cd "${_tarname}"
python2 setup.py build
}
# circular dependency on python2-beautifulsoup4
# check() {
# cd "${_tarname}/build/"
# py.test2
# }
package() {
cd "${_tarname}"
python2 setup.py install --root="${pkgdir}/" --optimize=1
install -Dm 644 'LICENSE.md' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|