dev-python/mock-open - 1.4.0 (ha-bleeding-edge)

Search

Package Information

Description:
A better mock for file I/O
Homepage:
https://github.com/nivbend/mock-open https://pypi.org/project/mock-open/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.4.0 8 amd64 arm arm64 x86 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( pypy3_11 python3_{11..14} )
DISTUTILS_USE_PEP517=setuptools
PYPI_NO_NORMALIZE=1
inherit distutils-r1 pypi

DESCRIPTION="A better mock for file I/O"
HOMEPAGE="https://github.com/nivbend/mock-open https://pypi.org/project/mock-open/"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"

DOCS="README.md"

RDEPEND="dev-python/mock[${PYTHON_USEDEP}]"
BDEPEND="
	test? (
		dev-python/pytest[${PYTHON_USEDEP}]
	)"

python_test() {
	py.test -v -v || die
}

distutils_enable_tests pytest

USE Flags

Dependencies

RDEPEND

dev-python/mock[${PYTHON_USEDEP}]

BDEPEND

	test? (
		dev-python/pytest[${PYTHON_USEDEP}]
	)