blob: b5ccb0eaab611336c6db0d3bc2c84ebccf831007 (
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
|
# Maintainer: Anton Kudelin <kudelin at proton dot me>
_pyname=ib-insync
pkgname=python-$_pyname
pkgver=0.9.86
pkgrel=1
pkgdesc='Python sync/async framework for Interactive Brokers API'
arch=(any)
url='https://github.com/erdewit/ib_insync'
license=(BSD)
depends=(python-nest-asyncio python-eventkit python-pandas python-matplotlib)
makedepends=(python-setuptools python-build python-installer python-wheel)
checkdepends=(python-pytest-asyncio)
conflicts=($pkgname-git)
source=(https://files.pythonhosted.org/packages/55/bb/733d5c81c8c2f54e90898afc7ff3a99f4d53619e6917c848833f9cc1ab56/${_pyname/-/_}-${pkgver}.tar.gz)
sha256sums=('73af602ca2463f260999970c5bd937b1c4325e383686eff301743a4de08d381e')
build() {
cd "${srcdir}/${_pyname/-/_}-${pkgver}"
python -m build \
--wheel \
--no-isolation \
--skip-dependency-check
}
package() {
cd "${srcdir}/${_pyname/-/_}-${pkgver}"
python -m installer \
--destdir="$pkgdir" \
--compile-bytecode=2 \
dist/*.whl
install -Dm755 LICENSE \
-t "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|