summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a519bea63ccb9a79cc167de3175819c76f60bc76 (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
# Maintainer: Juliette Monsel <j_4321 at protonmail dot com>
# based on the python2-lazr-restfulclient PKGBUILD by ValHue <vhuelamo at gmail dot com>

_name="lazr.restfulclient"
pkgname=("python-lazr-restfulclient")
pkgver="0.14.6"
pkgrel="1"
pkgdesc="A programmable client library that takes advantage of the commonalities among lazr.restful web services to provide added functionality on top of wadllib."
arch=('any')
url="https://launchpad.net/$_name"
license=('LGPL3')
makedepends=('python-build' 'python-wheel' 'python-installer'  'python-setuptools')
depends=('python-lazr-uri' 
         'python-six' 
         'python-distro' 
         'python-setuptools'
		 'python-httplib2>=0.7.7' 
         'python-wadllib>=1.1.4' 
         'python-oauthlib')
source=("${pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
#~ source=("${pkgname}-${pkgver}.tar.gz::https://launchpad.net/$_name/trunk/$pkgver/+download/$_name-$pkgver.tar.gz"
        #~ "${pkgname}-${pkgver}.tar.gz.asc::https://launchpad.net/$_name/trunk/$pkgver/+download/$_name-$pkgver.tar.gz.asc")
sha256sums=('43f12a1d3948463b1462038c47b429dcb5e42e0ba7f2e16511b02ba5d2adffdb')
#~ validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') 

prepare() {
    cd "$_name-$pkgver"
    sed -i "56d" setup.py 
    sed -i "s|find_packages('src')|['lazr.restfulclient']|g" setup.py 
    sed -i "s|include_package_data=True|include_package_data=False|g" setup.py 
}

build() {
    cd "$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}