blob: 1615287bb99a22c9e55179422d791f77dd70fcac (
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
|
# Maintainer: Kewl <xrjy@nygb.rh.bet(rot13)>
pkgname=python-ccxt
_pkgname=${pkgname:7}
pkgver=4.4.33
pkgrel=1
pkgdesc="A 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=('01c2c04d0f65ef6edc77e83cf460b7141b533dbd02db37ae2044102581524fa7')
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
}
|