blob: a7443e448420ae50c03625c5beab5e5ee255a4ae (
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
47
|
# Maintainer: redfish <redfish@galactica.pw>
pkgname=python-ipfshttpclient
_name=ipfshttpclient
pkgver=0.7.0
pkgrel=4
pkgdesc="Python IPFS HTTP client library"
arch=('any')
conflicts=("python-ipfsapi") # legacy name
url="https://pypi.python.org/pypi/ipfshttpclient"
license=('MIT')
depends=('python'
'python-httpcore'
'python-httpx'
'python-multiaddr'
'python-netaddr'
'python-requests'
'python-setuptools'
'python-six'
)
checkdepends=('kubo>=0.4.23'
'python-pytest' 'python-pytest-cov' 'python-pytest-ordering'
'python-pytest-dependency'
'python-mock' 'python-pytest-mock'
'python-cid' 'python-pytest-cid'
'python-pytest-localserver' 'python-pluggy' 'python-py'
)
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"
# To exclude tests pass: -k 'not test_name'
./test/run-tests.py
}
package() {
cd "$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
sha256sums=('feb1033c14c3ac87ee81264176c5beefeaf386385804427160466117ccc43693')
|