Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dev-python/multidict/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST multidict-6.1.0.tar.gz 64002 BLAKE2B dae74500696fccc2f49db661f9ef0c2d8322125e67dfa952e1d7dddb5ea484957e5fd9f4ce373b5e0eb12d37dbd086b95a467410832f1db7ae9bc5459c4621cf SHA512 2e35c1450879ecfc856e5355cc515f57ce6100a1cd8854704dc6afc1bbdce0d46ab3eb9e23e35ea9956aacfb33bec351e8b878c11fa1cf3c03282fa40a4959d3
DIST multidict-6.4.4.tar.gz 90183 BLAKE2B 7764b552f8b9e2b2d738d7aa7a92f4388bb4ee90596a5a854c0969a5e92fef9aaf0d40f39691fcfe08492637f59bb0c0482a4821c1e20d3d0d1ed3463bc0b5c0 SHA512 93b4975ff310c78526c116f6ccc800d310e3df4e8981120975642476d6354653451c4cfa6034f627a58736bb683978ef3e1c8ddb4df3308293011a0c1c1f2557
43 changes: 43 additions & 0 deletions dev-python/multidict/multidict-6.4.4.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=6
PYTHON_COMPAT=( python3+ pypy3 )

inherit distutils-r1

DESCRIPTION="multidict implementation"
HOMEPAGE="https://github.com/aio-libs/multidict/"
SRC_URI="https://files.pythonhosted.org/packages/91/2f/a3470242707058fe856fe59241eee5635d79087100b7042a867368863a27/multidict-6.4.4.tar.gz -> multidict-6.4.4.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="*"
IUSE="doc test"
RESTRICT="!test? ( test )"

DEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
>=dev-python/cython-0.28.4[${PYTHON_USEDEP}]
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
test? ( dev-python/pytest[${PYTHON_USEDEP}] )
"
RDEPEND=""

python_prepare_all() {
# don't use pytest-runner for tests
sed -i "s|'pytest-runner'||" setup.py || die
distutils-r1_python_prepare_all
}

python_compile_all() {
use doc && emake -C docs html
}

python_test() {
py.test -v tests || die "Tests fail with ${EPYTHON}"
}

python_install_all() {
use doc && local HTML_DOCS=( docs/_build/html/. )
distutils-r1_python_install_all
}
Loading