summaryrefslogtreecommitdiff
path: root/dev-python/annotated-types
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/annotated-types')
-rw-r--r--dev-python/annotated-types/Manifest2
-rw-r--r--dev-python/annotated-types/annotated-types-0.7.0.ebuild42
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/annotated-types/Manifest b/dev-python/annotated-types/Manifest
index a79192adb8f0..3b2112d4ab5f 100644
--- a/dev-python/annotated-types/Manifest
+++ b/dev-python/annotated-types/Manifest
@@ -1,3 +1,5 @@
DIST annotated_types-0.6.0.tar.gz 14670 BLAKE2B 9390abe727f9b7a777e8266e192e032e2f36703c76a60e7fa34dd5517db8129f75e617b67ff88e9f299d10dd3f076d6793bf86e04b6230f2c4df886a8e0719cb SHA512 6b7f6fa23f47758d955822564227173951d6ddd854397b0c996bb6adeadd9caebfab6d193595be17003c1ef0e81a6bd8e20ec8221a70ffa35f9a4414300e788d
+DIST annotated_types-0.7.0.tar.gz 16081 BLAKE2B 45f536bafb0a9dead41a7fcafe50304508df5024921c2b3637ba51ff144d46fd8cba4d503a65fcec1a973cf2cd791074a83d72fbd2f17269bd9a2d2b9f8c114e SHA512 8a6dd7274270397f7779fc4ca242997ad2ea739b530be5abcc30a72d1e4042fc08753ab432c3d9c7a53c7474b3794504062f68235885cfb6c688cce0700d8758
EBUILD annotated-types-0.6.0.ebuild 581 BLAKE2B 4556431266beb2f6440ab13fe49386741c77168ab0c2c36e2a78841255d7e8f7cfe5b2786045acde97bf23ba65df5cebba3b422f8e7aac1a9ffe8a8909427aa0 SHA512 715ac6385bc30024a6aeb88bc5f7d3fa1117301bbb0c86d5da6c6aed61fdb5c34a20dfafc7b1b3314ee5fb953a4b8087f2a724773df9d0195bf098cb910811f2
+EBUILD annotated-types-0.7.0.ebuild 859 BLAKE2B 75f6a98de136eb1def9f5491895c29e10694701642e299a6512da080e47bb9dc9614861110a7c6f2fa4428f776295311dc4fc9e05a3191642caf54ce93ca9daf SHA512 322b785591b3a060c375b38b57d4041d8b4008ddfe12e0b1498c1fa5d2bc4612f7aee88120165ab5d12d8d56fae814d1ae99182601d8fe2e58a3f57d1889d126
MISC metadata.xml 414 BLAKE2B 692ebee33e03288b0a5ec5fd649cceaf7dd6043893712deb3204371965898d12390301349644d4daebd014f09afb6a89731144747b061f872d7e75e8c4f3b668 SHA512 6434d35a1cc78c487e02a2b19d56b2778517adfa07f81003cfd981fca0c49c0f26c95139865a02bba22ea10991639b98a8ebc27d71bdfd892bcb653338a9cf32
diff --git a/dev-python/annotated-types/annotated-types-0.7.0.ebuild b/dev-python/annotated-types/annotated-types-0.7.0.ebuild
new file mode 100644
index 000000000000..878232d7d94e
--- /dev/null
+++ b/dev-python/annotated-types/annotated-types-0.7.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2023-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Reusable constraint types to use with typing.Annotated"
+HOMEPAGE="
+ https://github.com/annotated-types/annotated-types/
+ https://pypi.org/project/annotated-types/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+BDEPEND="
+ test? (
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=()
+
+ case ${EPYTHON} in
+ pypy3)
+ EPYTEST_DESELECT+=(
+ # https://github.com/annotated-types/annotated-types/issues/71
+ 'tests/test_main.py::test_predicate_repr[pred2-Predicate(math.isfinite)]'
+ )
+ ;;
+ esac
+
+ epytest
+}