diff options
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/pyfakefs/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pyfakefs/pyfakefs-6.1.3.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/pyfakefs/Manifest b/dev-python/pyfakefs/Manifest index 0c1865af749a..bec37d3845ba 100644 --- a/dev-python/pyfakefs/Manifest +++ b/dev-python/pyfakefs/Manifest @@ -2,3 +2,4 @@ DIST pyfakefs-6.0.0.gh.tar.gz 255364 BLAKE2B 953b367fa95cbb2dccf3367de4ba6f76838 DIST pyfakefs-6.1.0.gh.tar.gz 256597 BLAKE2B 9bd8335327bcd4641daddd5d65002849372462c7e9cc6260a2dbc4e84c3116b5b2423bb0ec60c27f37498cfb44858a1b27ed0f9650239399864a0b34edf54be9 SHA512 998ecb17afae46519da9fbca409b7cd0cb6b13c45867ad5c20b6abe1747850e4b9812aee2916f9c20d884adb0e244f87dba74a743e6d98e0e789469f90e2cc5f DIST pyfakefs-6.1.1.gh.tar.gz 256673 BLAKE2B 649c03eae7f75b579e6f43a110896506bf316ff0222202ec5219106f6cec1e761309c03c9c8514520bf9de97d06cbd4518a39881d46da702acc3bd4a08867dd9 SHA512 e385e5e0b399da169148d40394d98408156717c2f4a9ebdf5f9f3764ffc0d91005286ca974a8e1b01a981be8ecff435fbf78e5d2a0ab34874fc3fd3126afdf2c DIST pyfakefs-6.1.2.gh.tar.gz 256821 BLAKE2B a47012f90a25899deccd433261c89b39a43c23bf536aaf4f9ca1babfbffa2949e9f8dae53723d6b0c649d87f673216cc4a63344afe494d98c3cfbe21c6fc083e SHA512 4d9557559b84c61476e97903392f08d175dda58566bb18823ead5ea8ac0b4d904deb6a48462561985bd7ff2deb9e39bae40b1642cc4dbea8ca5f35bfd349291c +DIST pyfakefs-6.1.3.gh.tar.gz 257134 BLAKE2B 47190e011ce153c3600dfc9f6669bbcc57ab680cc64200a634d90205a915ba460a5a09f5907a0a7bb5d833b48b4f7f1be59217f940a87159e3575d56ff9c986b SHA512 606e4544bb631643553d23f01d8d63c428dab0c9dbe5f2e780e5ebd2136a7e61f9d74fbdab5f5aa69774040e93694e867de914c4dcdf902f474fdbd2f56595be diff --git a/dev-python/pyfakefs/pyfakefs-6.1.3.ebuild b/dev-python/pyfakefs/pyfakefs-6.1.3.ebuild new file mode 100644 index 000000000000..a6e8164bf978 --- /dev/null +++ b/dev-python/pyfakefs/pyfakefs-6.1.3.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..14} pypy3_11 ) + +inherit distutils-r1 + +DESCRIPTION="A fake file system that mocks the Python file system modules" +HOMEPAGE=" + https://github.com/pytest-dev/pyfakefs/ + https://pypi.org/project/pyfakefs/ +" +SRC_URI=" + https://github.com/pytest-dev/pyfakefs/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +EPYTEST_PLUGINS=( "${PN}" ) +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # requires *.dist-info/RECORD file that we're stripping + pyfakefs/tests/fake_filesystem_test.py::RealFileSystemAccessTest::test_add_package_metadata + # wants dev-python/openpyxl + pyfakefs/tests/patched_packages_test.py::TestPatchedPackages::test_read_excel + ) + local EPYTEST_IGNORE=( + # test for regression with opentimelineio package + pyfakefs/pytest_tests/segfault_test.py + # test for regression with undefined package + pyfakefs/pytest_tests/pytest_fixture_test.py + ) + + if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then + EPYTEST_IGNORE+=( + pyfakefs/pytest_tests/pytest_reload_pandas_test.py + ) + fi + + case ${EPYTHON} in + pypy3.11) + EPYTEST_DESELECT+=( + # TODO: this test messes up everything + pyfakefs/tests/fake_filesystem_unittest_test.py::TestDeprecationSuppression::test_no_deprecation_warning + # TODO + pyfakefs/tests/fake_pathlib_test.py::SkipPathlibTest::test_exists + ) + ;; + esac + + epytest +} |
