summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/argon2-cffi-bindings/argon2-cffi-bindings-21.2.0-r1.ebuild46
-rw-r--r--dev-python/argon2-cffi/argon2-cffi-21.3.0-r2.ebuild10
-rw-r--r--dev-python/autobahn/autobahn-22.4.2.ebuild7
-rw-r--r--dev-python/flatbuffers/flatbuffers-2.0-r1.ebuild20
-rw-r--r--dev-python/jellyfish/jellyfish-0.9.0-r1.ebuild6
-rw-r--r--dev-python/nose_fixes/nose_fixes-1.3.ebuild2
-rw-r--r--dev-python/py-ubjson/py-ubjson-0.16.1-r1.ebuild26
-rw-r--r--dev-python/pychroot/pychroot-0.10.4.ebuild3
-rw-r--r--dev-python/pychroot/pychroot-9999.ebuild3
-rw-r--r--dev-python/pyeclib/pyeclib-1.6.1.ebuild2
-rw-r--r--dev-python/pyh2o/pyh2o-1-r1.ebuild11
-rw-r--r--dev-python/pyqrcode/pyqrcode-1.2.1-r2.ebuild45
-rw-r--r--dev-python/pytrie/pytrie-0.4.0-r1.ebuild29
-rw-r--r--dev-python/qrcode/qrcode-7.3.1-r1.ebuild39
-rw-r--r--dev-python/rst-linker/rst-linker-2.3.0.ebuild5
-rw-r--r--dev-python/send2trash/send2trash-1.8.0-r1.ebuild25
-rw-r--r--dev-python/snappy/snappy-0.6.1.ebuild13
-rw-r--r--dev-python/tree-sitter/tree-sitter-0.20.0-r1.ebuild65
-rw-r--r--dev-python/txaio/txaio-22.2.1.ebuild24
-rw-r--r--dev-python/wsaccel/wsaccel-0.6.3-r1.ebuild34
20 files changed, 387 insertions, 28 deletions
diff --git a/dev-python/argon2-cffi-bindings/argon2-cffi-bindings-21.2.0-r1.ebuild b/dev-python/argon2-cffi-bindings/argon2-cffi-bindings-21.2.0-r1.ebuild
new file mode 100644
index 000000000000..1c0003f818d8
--- /dev/null
+++ b/dev-python/argon2-cffi-bindings/argon2-cffi-bindings-21.2.0-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="Low-level CFFI bindings for the Argon2 password hashing library"
+HOMEPAGE="
+ https://github.com/hynek/argon2-cffi-bindings/
+ https://pypi.org/project/argon2-cffi-bindings/
+"
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="cpu_flags_x86_sse2"
+
+DEPEND="
+ app-crypt/argon2:=
+"
+BDEPEND="
+ >=dev-python/setuptools_scm-6.2[${PYTHON_USEDEP}]
+ $(python_gen_cond_dep '
+ dev-python/cffi[${PYTHON_USEDEP}]
+ ' 'python*')
+"
+RDEPEND="
+ ${DEPEND}
+ ${BDEPEND}
+"
+
+DOCS=( CHANGELOG.md README.md )
+
+distutils_enable_tests pytest
+
+src_configure() {
+ export ARGON2_CFFI_USE_SYSTEM=1
+ # We cannot call usex in global scope, so we invoke it in src_configure
+ export ARGON2_CFFI_USE_SSE2=$(usex cpu_flags_x86_sse2 1 0)
+ distutils-r1_src_configure
+}
diff --git a/dev-python/argon2-cffi/argon2-cffi-21.3.0-r2.ebuild b/dev-python/argon2-cffi/argon2-cffi-21.3.0-r2.ebuild
index fe963af7ce46..dbfddde9736f 100644
--- a/dev-python/argon2-cffi/argon2-cffi-21.3.0-r2.ebuild
+++ b/dev-python/argon2-cffi/argon2-cffi-21.3.0-r2.ebuild
@@ -5,17 +5,23 @@ EAPI=8
DISTUTILS_USE_PEP517=flit
PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 )
+
inherit distutils-r1
DESCRIPTION="CFFI bindings to the Argon2 password hashing library"
-HOMEPAGE="https://github.com/hynek/argon2-cffi"
+HOMEPAGE="
+ https://github.com/hynek/argon2-cffi/
+ https://pypi.org/project/argon2-cffi/
+"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ppc ppc64 ~riscv ~s390 sparc x86"
-RDEPEND=">=dev-python/argon2-cffi-bindings-21.2.0[${PYTHON_USEDEP}]"
+RDEPEND="
+ >=dev-python/argon2-cffi-bindings-21.2.0[${PYTHON_USEDEP}]
+"
BDEPEND="
test? (
dev-python/hypothesis[${PYTHON_USEDEP}]
diff --git a/dev-python/autobahn/autobahn-22.4.2.ebuild b/dev-python/autobahn/autobahn-22.4.2.ebuild
index 9b7c7ac13093..b9fe8954569f 100644
--- a/dev-python/autobahn/autobahn-22.4.2.ebuild
+++ b/dev-python/autobahn/autobahn-22.4.2.ebuild
@@ -11,9 +11,11 @@ inherit distutils-r1 optfeature
MY_P=${PN}-$(ver_rs 3 -)
DESCRIPTION="WebSocket and WAMP for Twisted and Asyncio"
-HOMEPAGE="https://pypi.org/project/autobahn/
+HOMEPAGE="
https://crossbar.io/autobahn/
- https://github.com/crossbario/autobahn-python"
+ https://github.com/crossbario/autobahn-python/
+ https://pypi.org/project/autobahn/
+"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
@@ -47,7 +49,6 @@ BDEPEND="
>=dev-python/service_identity-18.1.0[${PYTHON_USEDEP}]
>=dev-python/pynacl-1.4.0[${PYTHON_USEDEP}]
>=dev-python/pytrie-0.4[${PYTHON_USEDEP}]
- >=dev-python/pyqrcode-1.2.1[${PYTHON_USEDEP}]
>=dev-python/cffi-1.14.5[${PYTHON_USEDEP}]
>=dev-python/argon2-cffi-20.1.0[${PYTHON_USEDEP}]
>=dev-python/passlib-1.7.4[${PYTHON_USEDEP}]
diff --git a/dev-python/flatbuffers/flatbuffers-2.0-r1.ebuild b/dev-python/flatbuffers/flatbuffers-2.0-r1.ebuild
new file mode 100644
index 000000000000..b27b6fef8b7b
--- /dev/null
+++ b/dev-python/flatbuffers/flatbuffers-2.0-r1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{7,8,9,10} )
+
+inherit distutils-r1
+
+DESCRIPTION="RFC 7049 - Concise Binary Object Representation"
+HOMEPAGE="
+ https://github.com/google/flatbuffers/
+ https://pypi.org/project/flatbuffers/
+"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
diff --git a/dev-python/jellyfish/jellyfish-0.9.0-r1.ebuild b/dev-python/jellyfish/jellyfish-0.9.0-r1.ebuild
index a299be0387c8..d8d4e428fa60 100644
--- a/dev-python/jellyfish/jellyfish-0.9.0-r1.ebuild
+++ b/dev-python/jellyfish/jellyfish-0.9.0-r1.ebuild
@@ -16,12 +16,6 @@ LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 ~riscv x86"
-BDEPEND="
- test? (
- dev-python/unicodecsv[${PYTHON_USEDEP}]
- )
-"
-
distutils_enable_tests pytest
src_test() {
diff --git a/dev-python/nose_fixes/nose_fixes-1.3.ebuild b/dev-python/nose_fixes/nose_fixes-1.3.ebuild
index 7d716e001007..6b1fe43cb966 100644
--- a/dev-python/nose_fixes/nose_fixes-1.3.ebuild
+++ b/dev-python/nose_fixes/nose_fixes-1.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
diff --git a/dev-python/py-ubjson/py-ubjson-0.16.1-r1.ebuild b/dev-python/py-ubjson/py-ubjson-0.16.1-r1.ebuild
new file mode 100644
index 000000000000..4697eb6a144a
--- /dev/null
+++ b/dev-python/py-ubjson/py-ubjson-0.16.1-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{7,8,9,10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Universal Binary JSON encoder/decoder"
+HOMEPAGE="
+ https://github.com/Iotic-Labs/py-ubjson/
+ https://pypi.org/project/py-ubjson/
+"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+
+distutils_enable_tests unittest
+
+python_test() {
+ eunittest -s test
+}
diff --git a/dev-python/pychroot/pychroot-0.10.4.ebuild b/dev-python/pychroot/pychroot-0.10.4.ebuild
index 77952ced3260..61205f4ec42c 100644
--- a/dev-python/pychroot/pychroot-0.10.4.ebuild
+++ b/dev-python/pychroot/pychroot-0.10.4.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
+
PYTHON_COMPAT=( python3_{7,8,9,10} )
inherit distutils-r1
diff --git a/dev-python/pychroot/pychroot-9999.ebuild b/dev-python/pychroot/pychroot-9999.ebuild
index 63cbb75f0c96..3a040a3ba948 100644
--- a/dev-python/pychroot/pychroot-9999.ebuild
+++ b/dev-python/pychroot/pychroot-9999.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
+
PYTHON_COMPAT=( python3_{7,8,9,10} )
inherit distutils-r1
diff --git a/dev-python/pyeclib/pyeclib-1.6.1.ebuild b/dev-python/pyeclib/pyeclib-1.6.1.ebuild
index 2dd0eae753e9..552524f158d7 100644
--- a/dev-python/pyeclib/pyeclib-1.6.1.ebuild
+++ b/dev-python/pyeclib/pyeclib-1.6.1.ebuild
@@ -17,7 +17,7 @@ SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86"
+KEYWORDS="amd64 ~arm64 x86"
DEPEND="
dev-libs/liberasurecode
diff --git a/dev-python/pyh2o/pyh2o-1-r1.ebuild b/dev-python/pyh2o/pyh2o-1-r1.ebuild
index e154ff6c3bbc..5aa900f6e012 100644
--- a/dev-python/pyh2o/pyh2o-1-r1.ebuild
+++ b/dev-python/pyh2o/pyh2o-1-r1.ebuild
@@ -11,13 +11,18 @@ inherit distutils-r1
DESCRIPTION="Python API for sci-libs/libh2o"
HOMEPAGE="https://github.com/mgorny/pyh2o/"
SRC_URI="
- https://github.com/mgorny/pyh2o/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ https://github.com/mgorny/pyh2o/archive/v${PV}.tar.gz -> ${P}.tar.gz
+"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-RDEPEND=">=sci-libs/libh2o-0.2.1:="
-DEPEND="${RDEPEND}"
+RDEPEND="
+ >=sci-libs/libh2o-0.2.1:=
+"
+DEPEND="
+ ${RDEPEND}
+"
distutils_enable_tests pytest
diff --git a/dev-python/pyqrcode/pyqrcode-1.2.1-r2.ebuild b/dev-python/pyqrcode/pyqrcode-1.2.1-r2.ebuild
new file mode 100644
index 000000000000..4a41552b7400
--- /dev/null
+++ b/dev-python/pyqrcode/pyqrcode-1.2.1-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{7,8,9,10} )
+
+inherit distutils-r1
+
+# upstream doesn't do tags
+EGIT_COMMIT="674a77b5eaf850d063f518bd90c243ee34ad6b5d"
+
+DESCRIPTION="A pure Python QR code generator with SVG, EPS, PNG and terminal output"
+HOMEPAGE="
+ https://github.com/mnooner256/pyqrcode/
+ https://pypi.org/project/PyQRCode/
+"
+SRC_URI="
+ https://github.com/mnooner256/pyqrcode/archive/${EGIT_COMMIT}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+S=${WORKDIR}/${PN}-${EGIT_COMMIT}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="png"
+
+RDEPEND="
+ png? ( dev-python/pypng[${PYTHON_USEDEP}] )
+"
+BDEPEND="
+ test? ( dev-python/pypng[${PYTHON_USEDEP}] )
+"
+
+distutils_enable_tests nose
+
+src_prepare() {
+ # don't pull in tkinter for one test
+ sed -i -e 's:test_xbm_with_tkinter:_&:' \
+ tests/test_xbm.py || die
+
+ distutils-r1_src_prepare
+}
diff --git a/dev-python/pytrie/pytrie-0.4.0-r1.ebuild b/dev-python/pytrie/pytrie-0.4.0-r1.ebuild
new file mode 100644
index 000000000000..5ce2f4f33b40
--- /dev/null
+++ b/dev-python/pytrie/pytrie-0.4.0-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{7,8,9,10} )
+
+inherit distutils-r1
+
+MY_PN="PyTrie"
+MY_P="${MY_PN}-${PV}"
+DESCRIPTION="A pure Python implementation of the trie data structure"
+HOMEPAGE="
+ https://github.com/gsakkis/pytrie/
+ https://pypi.org/project/PyTrie/
+"
+SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ dev-python/sortedcontainers[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests unittest
diff --git a/dev-python/qrcode/qrcode-7.3.1-r1.ebuild b/dev-python/qrcode/qrcode-7.3.1-r1.ebuild
new file mode 100644
index 000000000000..0fe8c743e841
--- /dev/null
+++ b/dev-python/qrcode/qrcode-7.3.1-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{7,8,9,10} )
+
+inherit distutils-r1
+
+DESCRIPTION="QR Code generator on top of PIL"
+HOMEPAGE="
+ https://github.com/lincolnloop/python-qrcode/
+ https://pypi.org/project/qrcode/
+"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+
+# optional deps:
+# - pillow and lxml for svg backend, set as hard deps
+RDEPEND="
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+ # TODO
+ qrcode/tests/test_script.py::ScriptTest::test_factory
+)
+
+src_install() {
+ distutils-r1_src_install
+ doman doc/qr.1
+}
diff --git a/dev-python/rst-linker/rst-linker-2.3.0.ebuild b/dev-python/rst-linker/rst-linker-2.3.0.ebuild
index 9c1a6e04fac7..32bfb063bd61 100644
--- a/dev-python/rst-linker/rst-linker-2.3.0.ebuild
+++ b/dev-python/rst-linker/rst-linker-2.3.0.ebuild
@@ -10,7 +10,10 @@ inherit distutils-r1
MY_PN="${PN/-/.}"
DESCRIPTION="Sphinx plugin to add links and timestamps to the changelog"
-HOMEPAGE="https://github.com/jaraco/rst.linker"
+HOMEPAGE="
+ https://github.com/jaraco/rst.linker/
+ https://pypi.org/project/rst.linker/
+"
SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
diff --git a/dev-python/send2trash/send2trash-1.8.0-r1.ebuild b/dev-python/send2trash/send2trash-1.8.0-r1.ebuild
new file mode 100644
index 000000000000..84c054ce189e
--- /dev/null
+++ b/dev-python/send2trash/send2trash-1.8.0-r1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{7,8,9,10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Sends files to the Trash (or Recycle Bin)"
+HOMEPAGE="
+ https://github.com/arsenetar/send2trash/
+ https://pypi.org/project/Send2Trash/
+"
+SRC_URI="
+ https://github.com/arsenetar/send2trash/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+distutils_enable_tests pytest
diff --git a/dev-python/snappy/snappy-0.6.1.ebuild b/dev-python/snappy/snappy-0.6.1.ebuild
index 60a8cba8f96b..e72e705070b8 100644
--- a/dev-python/snappy/snappy-0.6.1.ebuild
+++ b/dev-python/snappy/snappy-0.6.1.ebuild
@@ -12,7 +12,10 @@ MY_PN=python-${PN}
MY_P=${MY_PN}-${PV}
DESCRIPTION="Python library for the snappy compression library from Google"
-HOMEPAGE="https://pypi.org/project/python-snappy/"
+HOMEPAGE="
+ https://github.com/andrix/python-snappy/
+ https://pypi.org/project/python-snappy/
+"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
S=${WORKDIR}/${MY_P}
@@ -20,8 +23,12 @@ LICENSE="BSD"
KEYWORDS="amd64 arm arm64 ~riscv x86 ~amd64-linux ~x86-linux"
SLOT="0"
-DEPEND=">=app-arch/snappy-1.0.2:="
-RDEPEND=${DEPEND}
+DEPEND="
+ >=app-arch/snappy-1.0.2:=
+"
+RDEPEND="
+ ${DEPEND}
+"
python_test() {
cp test*.py "${BUILD_DIR}" || die
diff --git a/dev-python/tree-sitter/tree-sitter-0.20.0-r1.ebuild b/dev-python/tree-sitter/tree-sitter-0.20.0-r1.ebuild
new file mode 100644
index 000000000000..a8d531218e35
--- /dev/null
+++ b/dev-python/tree-sitter/tree-sitter-0.20.0-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{7,8,9,10} )
+
+inherit distutils-r1
+
+EGIT_COMMIT="4f39f6919ca3be8efb420a338fd2cf9b8b68b156"
+MY_P=py-tree-sitter-${EGIT_COMMIT}
+FIXTURE_PV=0.19.0
+
+DESCRIPTION="Python bindings to the Tree-sitter parsing library"
+HOMEPAGE="
+ https://github.com/tree-sitter/py-tree-sitter/
+ https://pypi.org/project/tree-sitter/
+"
+SRC_URI="
+ https://github.com/tree-sitter/py-tree-sitter/archive/${EGIT_COMMIT}.tar.gz
+ -> ${MY_P}.tar.gz
+ test? (
+ https://github.com/tree-sitter/tree-sitter-javascript/archive/v${FIXTURE_PV}.tar.gz
+ -> tree-sitter-javascript-${FIXTURE_PV}.tar.gz
+ https://github.com/tree-sitter/tree-sitter-python/archive/v${FIXTURE_PV}.tar.gz
+ -> tree-sitter-python-${FIXTURE_PV}.tar.gz
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+ dev-libs/tree-sitter:=
+"
+DEPEND="
+ ${RDEPEND}
+"
+
+distutils_enable_tests unittest
+
+PATCHES=(
+ "${FILESDIR}"/tree-sitter-0.19.0_p20210506-unbundle.patch
+)
+
+src_unpack() {
+ default
+ rmdir "${S}/tree_sitter/core" || die
+
+ if use test; then
+ mkdir "${S}/tests/fixtures" || die
+ local f
+ for f in tree-sitter-{javascript,python}; do
+ mv "${f}-${FIXTURE_PV}" "${S}/tests/fixtures/${f}" || die
+ done
+ fi
+}
+
+src_test() {
+ rm -r tree_sitter || die
+ distutils-r1_src_test
+}
diff --git a/dev-python/txaio/txaio-22.2.1.ebuild b/dev-python/txaio/txaio-22.2.1.ebuild
index a2dfd8e886f3..f893bf7f36ac 100644
--- a/dev-python/txaio/txaio-22.2.1.ebuild
+++ b/dev-python/txaio/txaio-22.2.1.ebuild
@@ -9,7 +9,10 @@ PYTHON_COMPAT=( python3_{7,8,9,10} )
inherit distutils-r1 optfeature
DESCRIPTION="Compatibility API between asyncio/Twisted/Trollius"
-HOMEPAGE="https://github.com/crossbario/txaio https://pypi.org/project/txaio/"
+HOMEPAGE="
+ https://github.com/crossbario/txaio/
+ https://pypi.org/project/txaio/
+"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
@@ -21,11 +24,20 @@ distutils_enable_sphinx docs \
'>=dev-python/sphinx_rtd_theme-0.1.9'
distutils_enable_tests pytest
-EPYTEST_DESELECT=(
- # Take out failing tests known to pass when run manually
- # we certainly don't need to test "python setup.py sdist" here
- test/test_packaging.py
-)
+python_test() {
+ local EPYTEST_DESELECT=(
+ # we certainly don't need to test "python setup.py sdist" here
+ test/test_packaging.py
+ )
+ [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=(
+ # tests for removed asyncio.coroutine
+ test/test_as_future.py::test_as_future_coroutine
+ test/test_call_later.py::test_explicit_reactor_coroutine
+ test/test_is_future.py::test_is_future_coroutine
+ )
+
+ epytest
+}
pkg_postinst() {
optfeature "Twisted support" "dev-python/twisted dev-python/zope-interface"
diff --git a/dev-python/wsaccel/wsaccel-0.6.3-r1.ebuild b/dev-python/wsaccel/wsaccel-0.6.3-r1.ebuild
new file mode 100644
index 000000000000..37fcf638e51b
--- /dev/null
+++ b/dev-python/wsaccel/wsaccel-0.6.3-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{7,8,9,10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Accelerator for ws4py, autobahn and tornado"
+HOMEPAGE="
+ https://github.com/methane/wsaccel/
+ https://pypi.org/project/wsaccel/
+"
+SRC_URI="
+ https://github.com/methane/wsaccel/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz
+"
+
+SLOT="0"
+LICENSE="Apache-2.0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~amd64-linux ~x86-linux"
+
+BDEPEND="
+ dev-python/cython[${PYTHON_USEDEP}]
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ cd tests || die
+ epytest
+}