From 551d5d38e514acbf61a07e96065739369686629b Mon Sep 17 00:00:00 2001 From: Arjan Mossel Date: Thu, 28 Jan 2021 01:01:37 +0100 Subject: [PATCH] New package: python3-outcome-1.1.0 --- srcpkgs/python3-outcome/template | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/python3-outcome/template diff --git a/srcpkgs/python3-outcome/template b/srcpkgs/python3-outcome/template new file mode 100644 index 000000000000..f326b36ace81 --- /dev/null +++ b/srcpkgs/python3-outcome/template @@ -0,0 +1,23 @@ +# 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 " +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 +}