Files
guru/dev-python/thriftrw/thriftrw-1.8.1.ebuild
Alessandro Barbieri 08e554d41b dev-python/thriftrw: fix S
Closes: https://bugs.gentoo.org/819006
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2021-10-21 00:30:36 +02:00

40 lines
807 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MYPN="${PN}-python"
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="A Thrift encoding library for Python"
HOMEPAGE="
https://github.com/thriftrw/thriftrw-python
https://pypi.org/project/thriftrw
"
SRC_URI="https://github.com/thriftrw/${MYPN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MYPN}-${PV}"
SLOT="0"
LICENSE="MIT"
KEYWORDS="~amd64"
RDEPEND="
dev-python/ply[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
>=dev-python/cython-0.17[${PYTHON_USEDEP}]
test? (
>=dev-python/pytest-benchmark-3.0.1[${PYTHON_USEDEP}]
)
"
PATCHES=(
"${FILESDIR}/${P}-no-install-examples.patch"
"${FILESDIR}/${P}-tool-pytest.patch"
)
distutils_enable_tests pytest