void-packages/srcpkgs/python-fishnet/template

32 lines
868 B
Bash

# Template file for 'python-fishnet'
pkgname=python-fishnet
version=1.15.14
revision=1
archs=noarch
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=19693df6e7f458ad8b642e82139c51ec69f008d7d0896b2fe79e230af5f19c1f
do_check() {
python3 setup.py test
}
python3-fishnet_package() {
archs=noarch
pycompile_module="fishnet.py"
short_desc="${short_desc/Python2/Python3}"
depends="python3-requests"
pkg_install() {
vmove usr/lib/python3*
}
}