This works around some weird distutils behavior when CC is set in the
environment.
Bug: https://bugs.gentoo.org/630578
Package-Manager: Portage-2.3.11_p4, Repoman-2.3.3_p62
PYTHON_COMPAT=( python2_7 python3_{4,5,6} pypy{,3} )
PYTHON_REQ_USE="threads(+)"
-inherit distutils-r1
+inherit distutils-r1 flag-o-matic
DESCRIPTION="Library providing cryptographic recipes and primitives"
HOMEPAGE="https://github.com/pyca/cryptography/ https://pypi.python.org/pypi/cryptography/"
DOCS=( AUTHORS.rst CONTRIBUTING.rst README.rst )
+python_configure_all() {
+ append-cflags $(test-flags-CC -pthread)
+}
+
python_test() {
py.test -v -v -x || die "Tests fail with ${EPYTHON}"
}