mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 11:33:15 -04:00
dev-python/fastavro: add 1.7.0, drop old
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
60
dev-python/fastavro/fastavro-1.7.0.ebuild
Normal file
60
dev-python/fastavro/fastavro-1.7.0.ebuild
Normal file
@@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="Fast read/write of AVRO files"
|
||||
HOMEPAGE="
|
||||
https://github.com/fastavro/fastavro
|
||||
https://pypi.org/project/fastavro/
|
||||
"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
TEST_S="${S}_test"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
BDEPEND="
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/lz4[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
dev-python/pandas[${PYTHON_USEDEP}]
|
||||
dev-python/python-zstandard[${PYTHON_USEDEP}]
|
||||
dev-python/snappy[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# TypeError
|
||||
tests/test_fastavro.py::test_regular_vs_ordered_dict_record_typeerror
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
distutils_enable_sphinx docs \
|
||||
dev-python/sphinx_rtd_theme
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
|
||||
cp -a "${S}" "${TEST_S}" || die
|
||||
rm -r "${TEST_S}"/fastavro/* || die
|
||||
cp {"${S}","${TEST_S}"}/fastavro/__main__.py || die
|
||||
}
|
||||
|
||||
python_test() {
|
||||
cd "${TEST_S}" || die
|
||||
epytest
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
optfeature "lz4 support" dev-python/lz4
|
||||
optfeature "snappy support" dev-python/snappy
|
||||
optfeature "zstd support" dev-python/python-zstandard
|
||||
}
|
||||
Reference in New Issue
Block a user