diff options
author | redfish | 2019-08-31 19:32:22 -0400 |
---|---|---|
committer | redfish | 2019-08-31 19:32:22 -0400 |
commit | c2aa38a82967d0fb19919590e9eefe84c57b6842 (patch) | |
tree | df5988b8a27a0b36a8e1152fd8c048fa0b4fdcb5 | |
download | aur-c2aa38a82967d0fb19919590e9eefe84c57b6842.tar.gz |
0.4.12
-rw-r--r-- | .SRCINFO | 26 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 40 |
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1fc2022cafc6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = python-ipfshttpclient + pkgdesc = Python IPFS HTTP client library + pkgver = 0.4.12 + pkgrel = 1 + url = https://pypi.python.org/pypi/ipfshttpclient + arch = any + license = MIT + checkdepends = python-pytest + checkdepends = python-pytest-cov + checkdepends = python-pytest-ordering + checkdepends = python-pytest-mock + checkdepends = python-pytest-localserver + checkdepends = python-pluggy + checkdepends = python-py + depends = python + depends = python-multiaddr + depends = python-netaddr + depends = python-requests + depends = python-setuptools + optdepends = go-ipfs: IPFS daemon + conflicts = python-ipfsapi + source = https://pypi.io/packages/source/i/ipfshttpclient/ipfshttpclient-0.4.12.tar.gz + sha256sums = 0a199a1005fe44bff9da28b5af4785b0b09ca700baac9d1e26718fe23fe89bb7 + +pkgname = python-ipfshttpclient + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0dc2909bf38a --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*.tar.gz +*.tar.xz + +src/ +pkg/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fed79831340a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: redfish <redfish@galactica.pw> + +pkgname=python-ipfshttpclient +_name=ipfshttpclient +pkgver=0.4.12 +pkgrel=1 +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-multiaddr' + 'python-netaddr' + 'python-requests' + 'python-setuptools' + ) +checkdepends=('python-pytest' 'python-pytest-cov' 'python-pytest-ordering' 'python-pytest-mock' + 'python-pytest-localserver' 'python-pluggy' 'python-py') +optdepends=('go-ipfs: IPFS daemon') # an IPFS deamon is a checkdepend, but not required to be go-ipfs +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=('0a199a1005fe44bff9da28b5af4785b0b09ca700baac9d1e26718fe23fe89bb7') |