Files
guru/dev-python/pytest-mypy-plugins/pytest-mypy-plugins-2.0.0-r1.ebuild
Lucio Sauer 2d2203d8e8 dev-python/pytest-mypy-plugins: backport compatibility with >=mypy-1.8.0
Both versions were previously incompatible with dev-python/mypy-1.8.0 due
to an incompatibility with mypy's new flush_errors signature.
See also: https://github.com/typeddjango/pytest-mypy-plugins/pull/139

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
2024-02-26 02:35:42 +01:00

36 lines
933 B
Bash

# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11,12} )
inherit distutils-r1
DESCRIPTION="pytest plugin for testing mypy types, stubs, plugins"
HOMEPAGE="
https://pypi.org/project/pytest-mypy-plugins/
https://github.com/typeddjango/pytest-mypy-plugins/
"
SRC_URI="https://github.com/typeddjango/pytest-mypy-plugins/archive/refs/tags/${PV}.tar.gz
-> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
PATCHES="${FILESDIR}"/${P}-compat-mypy-1.8.0.patch
DOCS="README* CHANGELOG*"
RDEPEND="
>=dev-python/mypy-1.8.0[${PYTHON_USEDEP}]
>=dev-python/pytest-7.0.0[${PYTHON_USEDEP}]
dev-python/decorator[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/regex[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest