summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cf8a0bf8232069302d9aaca4c1285da372e922d9 (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
40
41
42
43
44
45
46
# Maintainer: peippo <christoph+aur@christophfink.com>

pkgname=python-olxsearch
_name=${pkgname#python-}
pkgver=1.0.6
pkgrel=2

pkgdesc="Download metadata from OLX online marketplaces"
url="https://gitlab.com/christoph.fink/olxsearch"
license=("GPL3")

arch=("any")
makedepends=("python-setuptools")
checkdepends=("python-nose")
depends=(
    "python-beautifulsoup4"
    "python-dateparser"
    "python-fake-useragent"
    "python-geoalchemy2"
    "python-geocoder"
    "python-pandas"
    "python-sqlalchemy"
    "python-requests"
)

source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=("76499c10a8eabb1475c34ace0839e42007d853816d88e13e5dce8586adeafaab")

prepare() {
   rm -Rf "${srcdir}/*/*.egg-info"
}

build() {
   cd "${srcdir}/${_name}-${pkgver}"
   python -c "from setuptools import setup; setup();" build
}

check() {
    cd "${srcdir}/${_name}-${pkgver}/test/"
    nosetests -sx
}

package() {
   cd "${srcdir}/${_name}-${pkgver}"
   python -c "from setuptools import setup; setup();" install --root="${pkgdir}" --optimize=1 --skip-build
}