void-packages/srcpkgs/python-fishnet/template

32 lines
864 B
Bash

# Template file for 'python-fishnet'
pkgname=python-fishnet
version=1.15.13
revision=1
noarch=yes
wrksrc="fishnet-${version}"
build_style=python-module
pycompile_module="fishnet.py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-requests"
checkdepends="python3-requests"
short_desc="Distributed Stockfish analysis for lichess.org (Python2)"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/niklasf/fishnet"
distfiles="https://github.com/niklasf/fishnet/archive/v${version}.tar.gz"
checksum=549a1881672c62b3126cbc694381668ad0864b77ac0b20281a9d9e6b57e836e6
do_check() {
python3 setup.py test
}
python3-fishnet_package() {
noarch=yes
pycompile_module="fishnet.py"
short_desc="${short_desc/Python2/Python3}"
depends="python3-requests"
pkg_install() {
vmove usr/lib/python3*
}
}