summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-07-13 08:20:40 +0200
committerMichał Górny <mgorny@gentoo.org>2022-07-13 10:10:21 +0200
commit14a5d1d46e1b1fa1f9c024c62a4f70ee9cc9b8fc (patch)
tree0be96af2efe509ff971ac0dbb841ea3e1acad196 /dev-python/pyfakefs
parentdev-python/aws-sam-translator: Bump to 1.47.0 (diff)
downloadgentoo-14a5d1d46e1b1fa1f9c024c62a4f70ee9cc9b8fc.tar.gz
gentoo-14a5d1d46e1b1fa1f9c024c62a4f70ee9cc9b8fc.tar.bz2
gentoo-14a5d1d46e1b1fa1f9c024c62a4f70ee9cc9b8fc.zip
dev-python/pyfakefs: Bump to 4.6.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pyfakefs')
-rw-r--r--dev-python/pyfakefs/Manifest1
-rw-r--r--dev-python/pyfakefs/pyfakefs-4.6.0.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/pyfakefs/Manifest b/dev-python/pyfakefs/Manifest
index 55f8be701e88..4f5d7d4bec26 100644
--- a/dev-python/pyfakefs/Manifest
+++ b/dev-python/pyfakefs/Manifest
@@ -1 +1,2 @@
DIST pyfakefs-4.5.6.tar.gz 206310 BLAKE2B c37cb4709a285bfba411cd76da4f158cfe682d210411290ed3e06456ceb5b6de99ecc320da748c8d9b0e230b6384290638d3fd22f0e1388c1965b2b2806d2d30 SHA512 c7a31cc94eaa2b1830d4da355bf4d3de5cbdc8851561ec82fd2de9fe845457f13bcc25aa58a50afb862f396cb0e83c8bf71bb8be51cc3b628ff01b25db62eca6
+DIST pyfakefs-4.6.0.gh.tar.gz 208832 BLAKE2B 60a8c3223fc92e366beb8907ea0c8f242b91ddd422ab0b551d04d7c24ed3d4202b7c42b8971eef0f15fa27b7ed0821637e9341b3feeaf02232948a50898213d6 SHA512 9f507c7b0e28591886cb91c36dad22d6c55d123a447070c2fdc6573d2db1e2bb79cd5c203a9fce762882de680feacaf7e3b57f9bebf6922c643bf61fe44878f2
diff --git a/dev-python/pyfakefs/pyfakefs-4.6.0.ebuild b/dev-python/pyfakefs/pyfakefs-4.6.0.ebuild
new file mode 100644
index 000000000000..926e0dc49359
--- /dev/null
+++ b/dev-python/pyfakefs/pyfakefs-4.6.0.ebuild
@@ -0,0 +1,43 @@
+# 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_{8..11} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="A fake file system that mocks the Python file system modules"
+HOMEPAGE="
+ https://github.com/jmcgeheeiv/pyfakefs/
+ https://pypi.org/project/pyfakefs/
+"
+SRC_URI="
+ https://github.com/jmcgeheeiv/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local EPYTEST_DESELECT=()
+
+ [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=(
+ pyfakefs/pytest_tests/pytest_plugin_test.py::test_pause_resume
+ pyfakefs/pytest_tests/pytest_plugin_test.py::test_pause_resume_contextmanager
+ pyfakefs/tests/fake_filesystem_unittest_test.py::PauseResumeTest
+ pyfakefs/tests/fake_filesystem_unittest_test.py::PauseResumePatcherTest
+ pyfakefs/tests/fake_tempfile_test.py::FakeTempfileModuleTest::test_named_temporary_file
+ pyfakefs/tests/fake_tempfile_test.py::FakeTempfileModuleTest::test_named_temporary_file_no_delete
+ pyfakefs/tests/fake_tempfile_test.py::FakeTempfileModuleTest::test_temporary_file
+ pyfakefs/tests/fake_tempfile_test.py::FakeTempfileModuleTest::test_temporay_file_with_dir
+ )
+
+ epytest -p pyfakefs.pytest_plugin
+}