blob: 75aca8f92e03cc9b886665071cf94bdaafa05ed6 (
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
|
# Maintainer: Michael Egger <michael.egger at tsn at>
pkgname=python-freqtrade-git
pkgver=0.13.0.r2.g3d61095
pkgrel=1
pkgdesc="Simple High Frequency Trading Bot for crypto currencies"
url="https://github.com/gcarq/freqtrade/"
arch=('any')
license=('GPLv3')
provides=('python-freqtrade')
makedepends=('python' 'python-setuptools')
depends=('python-sqlalchemy'
'python-arrow' 'python-requests' 'ta-lib' 'python-pip'
'python-urllib3' 'python-wrapt' 'python-pandas' 'python-scikit-learn'
'python-scipy' 'python-jsonschema' 'python-numpy' 'python-pytest'
'python-pytest-mock' 'python-pytest-cov' 'python-networkx'
'python-telegram-bot' 'python-bittrex' 'python-ta-lib'
'python-tabulate'
# TODO: make proper package for hyperopt
)
_branch="master"
source=("$pkgname"::"git://github.com/gcarq/freqtrade.git#branch=${_branch}")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
version=$(git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
sed -i "s/^__version__.*$/__version__ = '$version'/g" freqtrade/__init__.py
echo $version
}
package() {
# Install hyperopt
pip install --prefix=/usr --root="hyperopt" hyperopt
cd "$srcdir/$pkgname"
python setup.py build
python setup.py install --prefix=/usr --root="$pkgdir"
install -D -m644 LICENSE \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|