--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dolsen@gentoo.org</email>
+ <description>Primary maintainer</description>
+ </maintainer>
+ <upstream>
+ <maintainer>
+ <email>vladimir@rutsky.org</email>
+ <name>Vladimir Rutsky</name>
+ </maintainer>
+ <remote-id type="pypi">setuptools_trial</remote-id>
+ </upstream>
+ <longdescription>
+ This is a plugin for setuptools that integrates Twisted trial. Once
+ installed, “python ./setup.py trial” will run the package’s unit tests
+ using Twisted trial. The package can also optionally be configured so
+ that “python ./setup.py test” will use Twisted trial instead of pyunit
+ a.k.a. unittest.
+ </longdescription>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 python3_{4,5} )
+
+inherit distutils-r1
+
+DESCRIPTION="Setuptools plugin that makes unit tests execute with trial instead of pyunit"
+HOMEPAGE="https://github.com/rutsky/setuptools-trial https://pypi.python.org/pypi/setuptools_trial"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+#IUSE="test"
+IUSE=""
+
+RDEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' python2_7)
+"
+
+DEPEND="
+ ${RDEPEND}
+"
+
+# tests fail due to pip install sandbox violations
+# test? (
+# dev-python/virtualenv[${PYTHON_USEDEP}]
+# dev-python/pytest[${PYTHON_USEDEP}]
+# dev-python/pytest-virtualenv[${PYTHON_USEDEP}]
+# )
+#"
+
+#python_test() {
+ #distutils_install_for_testing
+
+ #esetup.py test || die "Tests failed under ${EPYTHON}"
+#}