From 08fac09fbca6ddfef48485eeda795123ad7062b1 Mon Sep 17 00:00:00 2001 From: Arjan Mossel Date: Thu, 28 Jan 2021 01:02:03 +0100 Subject: [PATCH] New package: python3-sniffio-1.2.0 --- srcpkgs/python3-sniffio/template | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 srcpkgs/python3-sniffio/template diff --git a/srcpkgs/python3-sniffio/template b/srcpkgs/python3-sniffio/template new file mode 100644 index 0000000000..af169ef60b --- /dev/null +++ b/srcpkgs/python3-sniffio/template @@ -0,0 +1,23 @@ +# Template file for 'python3-sniffio' +pkgname=python3-sniffio +version=1.2.0 +revision=1 +wrksrc="sniffio-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +checkdepends="python3-pytest python3-pytest-cov python3-curio" +short_desc="Sniff out which async library your code is running under" +maintainer="Arjan Mossel " +license="Apache-2.0, MIT" +homepage="https://github.com/python-trio/sniffio" +distfiles="${PYPI_SITE}/s/sniffio/sniffio-${version}.tar.gz" +checksum=c4666eecec1d3f50960c6bdf61ab7bc350648da6c126e3cf6898d8cd4ddcd3de + +do_check() { + PYTHONPATH=$(cd build/lib* && pwd) pytest +} + +post_install() { + vlicense LICENSE +}