summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2022-12-25 11:04:13 -0800
committerZac Medico <zmedico@gentoo.org>2022-12-25 11:05:45 -0800
commit32a8a1a49559ddd3279564af8eaadbcbf49c2b43 (patch)
treeb0107252138db38d4f919137416223f0fbdf0271 /dev-python/pyu2f
parentmail-filter/mailfilter: drop 0.8.4 (diff)
downloadgentoo-32a8a1a49559ddd3279564af8eaadbcbf49c2b43.tar.gz
gentoo-32a8a1a49559ddd3279564af8eaadbcbf49c2b43.tar.bz2
gentoo-32a8a1a49559ddd3279564af8eaadbcbf49c2b43.zip
dev-python/pyu2f: adjust pyfakefs usage
Closes: https://bugs.gentoo.org/888223 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-python/pyu2f')
-rw-r--r--dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild b/dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild
index a69df87e81ac..5d49690f8d77 100644
--- a/dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild
+++ b/dev-python/pyu2f/pyu2f-0.1.5-r1.ebuild
@@ -31,3 +31,13 @@ BDEPEND="
DOCS=( CONTRIBUTING.md README.md )
distutils_enable_tests pytest
+
+python_prepare_all() {
+ # adjust pyfakefs usage #888223
+ sed -e "s:CreateFile:create_file:" \
+ -e "s:CreateDirectory:create_dir:" \
+ -e "s:RemoveObject:remove_object:" \
+ -e "s:SetContents:set_contents:" \
+ -i pyu2f/tests/hid/linux_test.py || die
+ distutils-r1_python_prepare_all
+}