diff options
author | Patrick McLean <patrick.mclean@sony.com> | 2021-07-01 11:31:34 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2021-07-01 11:42:02 -0700 |
commit | 763d651c2acd52b435de26941babb96776a362fe (patch) | |
tree | 97a8f545dd456303d211a2e8597533558ebdbcb4 /dev-python | |
parent | dev-python/line_profiler: Port to py3.10 (diff) | |
download | gentoo-763d651c2acd52b435de26941babb96776a362fe.tar.gz gentoo-763d651c2acd52b435de26941babb96776a362fe.tar.bz2 gentoo-763d651c2acd52b435de26941babb96776a362fe.zip |
dev-python/thriftpy2: New package
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/thriftpy2/Manifest | 1 | ||||
-rw-r--r-- | dev-python/thriftpy2/metadata.xml | 8 | ||||
-rw-r--r-- | dev-python/thriftpy2/thriftpy2-0.4.14.ebuild | 39 |
3 files changed, 48 insertions, 0 deletions
diff --git a/dev-python/thriftpy2/Manifest b/dev-python/thriftpy2/Manifest new file mode 100644 index 000000000000..e844d9323692 --- /dev/null +++ b/dev-python/thriftpy2/Manifest @@ -0,0 +1 @@ +DIST thriftpy2-0.4.14.tar.gz 127552 BLAKE2B 4061642fb14b60ba53e0c4e6342ead25f781ee923b718a6c557235fcbfe4219b4d8944894afe9783062e7950b689b909af6be5cefe3b634a476ec582adfefbed SHA512 0b248c4999b0a97287d8db3e5b79ac687bc7e25a5478ef125b479e0baf9be9d0aa5f9eaadf0612c228133295743ba913bfe69e7fe59a8d5f854a682da9d31c50 diff --git a/dev-python/thriftpy2/metadata.xml b/dev-python/thriftpy2/metadata.xml new file mode 100644 index 000000000000..cee379b15409 --- /dev/null +++ b/dev-python/thriftpy2/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>chutzpah@gentoo.org</email> + <name>Patrick McLean</name> + </maintainer> +</pkgmetadata> diff --git a/dev-python/thriftpy2/thriftpy2-0.4.14.ebuild b/dev-python/thriftpy2/thriftpy2-0.4.14.ebuild new file mode 100644 index 000000000000..16727441076a --- /dev/null +++ b/dev-python/thriftpy2/thriftpy2-0.4.14.ebuild @@ -0,0 +1,39 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..9} ) +inherit distutils-r1 + +DESCRIPTION="Pure python approach of Apache Thrift" +HOMEPAGE="https://github.com/Thriftpy/thriftpy2" +SRC_URI="https://github.com/Thriftpy/thriftpy2/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + dev-python/ply[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + www-servers/tornado[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests --install pytest + +python_prepare_all() { + rm tests/test_tornado.py || die + distutils-r1_python_prepare_all +} + +python_test() { + distutils_install_for_testing --via-root + pushd tests >/dev/null || die + epytest + popd >/dev/null || die +} |