void-packages/srcpkgs/python3-outcome/template

24 lines
685 B
Bash
Raw Normal View History

2021-01-28 01:01:37 +01:00
# Template file for 'python3-outcome'
pkgname=python3-outcome
version=1.1.0
revision=1
wrksrc="outcome-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
checkdepends="python3-pytest python3-pytest-cov python3-pytest-asyncio"
short_desc="Capture the outcome of Python function calls"
maintainer="Arjan Mossel <arjanmossel@gmail.com>"
license="Apache-2.0, MIT"
homepage="https://github.com/python-trio/outcome"
distfiles="${PYPI_SITE}/o/outcome/outcome-${version}.tar.gz"
checksum=e862f01d4e626e63e8f92c38d1f8d5546d3f9cce989263c521b2e7990d186967
do_check() {
PYTHONPATH=$(cd build/lib* && pwd) pytest
}
post_install() {
vlicense LICENSE
}