upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-py_stringmatching / trunk / PKGBUILD
bloba2ba807fe922525df2a2c6fd53de0fd60c77d247
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 _pkg=py_stringmatching
4 pkgname=python-${_pkg}
5 pkgver=0.4.3
6 pkgrel=2
7 pkgdesc="Comprehensive and scalable set of string tokenizers and similarity measures"
8 arch=(x86_64)
9 url="https://github.com/anhaidgroup/py_stringmatching"
10 license=(BSD)
11 depends=(python-numpy python-six)
12 makedepends=(python-setuptools cython)
13 checkdepends=(python-nose)
14 source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
15 #source=(https://github.com/anhaidgroup/py_stringmatching/archive/v${pkgver}/${_pkg}-${pkgver}.tar.gz)
16 sha256sums=('921b9bb163b310df341c33823913204f7b0ca9f6a319f5b451408300bd378dee')
18 build() {
19   cd ${_pkg}-${pkgver}
20   sed -i 's|if not PIP_INSTALLED:|if False:|g' setup.py
21   python setup.py build
24 # `No module named 'py_stringmatching.similarity_measure.cython.cython_affine'` even with PYTHONPATH
25 #check() {
26 #  cd ${_pkg}-${pkgver}
27 #  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
28 #  PYTHONPATH="${PWD}"/build/lib.linux-${CARCH}-${python_version} nosetests
31 package() {
32   cd ${_pkg}-${pkgver}
33   python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
34   install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}