blob: 1bbc97b3be3f40addc95846a8065d53709ef58ea (
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
|
pkgname=python-ccxt
_pkgname=${pkgname:7}
pkgver=1.80.9
pkgrel=1
pkgdesc="A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges"
arch=(any)
url="https://ccxt.trade"
license=(MIT)
depends=(python python-certifi python-requests python-cryptography python-aiohttp python-aiodns python-yarl)
makedepends=(python-build python-installer python-wheel python-setuptools)
source=(https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz)
sha256sums=('793397a7d74f8b0755bcc43b9b797b52fbd376d1a1db4453d9dc5dbde4738e7b')
prepare() {
cd "$srcdir"/ccxt-$pkgver
mv README.{rst,md}
}
build() {
cd ${srcdir}/${_pkgname}-${pkgver}
python -m build --wheel --no-isolation
}
package() {
cd ${srcdir}/${_pkgname}-${pkgver}
python -m installer --destdir="$pkgdir" dist/*.whl
install -m0644 -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
|