summaryrefslogtreecommitdiff
blob: a82b6a2bf4cfd04ad07057804c564a966b65cc67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1

DESCRIPTION="The async transformation code"
HOMEPAGE="https://github.com/python-trio/unasync"
SRC_URI="https://github.com/python-trio/unasync/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="|| ( Apache-2.0 MIT )"
SLOT="0"
KEYWORDS="amd64 x86"

src_prepare() {
	# Stop test from breaking itself
	sed -i '/env\["PYTHONPATH"\]/d' "${S}/tests/test_unasync.py" || die
	default_src_prepare
}

distutils_enable_sphinx docs/source \
	dev-python/sphinxcontrib-trio \
	dev-python/sphinx_rtd_theme

distutils_enable_tests --install pytest