blob: bc94cfcf55c709eec416f0a6fcc56b3b602b3645 (
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
|
# Maintainer: redfish <redfish@galactica.pw>
pkgname=python-multiaddr
_name=multiaddr
pkgver=0.0.9
pkgrel=2
pkgdesc="Python implementation of jbenet's multiaddr"
arch=('any')
url="https://pypi.python.org/pypi/multiaddr"
license=('MIT')
depends=('python'
'python-base58'
'python-netaddr'
'python-setuptools'
'python-six'
'python-varint'
)
checkdepends=('flake8' 'python-pytest' 'python-tox')
source=("https://pypi.io/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
build() {
cd "$_name-$pkgver"
python setup.py build
}
check() {
cd "$_name-$pkgver"
flake8 --ignore E501,E226,E275,I001,I003,I004,I005,BLK100 multiaddr tests
python setup.py test
}
package() {
cd "$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
sha256sums=('30b2695189edc3d5b90f1c303abb8f02d963a3a4edf2e7178b975eb417ab0ecf')
|