From cc8c41f5505b5247ac2bd1ddad41528b405f4cfc Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Sat, 18 May 2024 10:56:23 +0000 Subject: Adding metadata --- dev-python/jsonpatch/jsonpatch-1.33.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'dev-python/jsonpatch') diff --git a/dev-python/jsonpatch/jsonpatch-1.33.ebuild b/dev-python/jsonpatch/jsonpatch-1.33.ebuild index b9c9e34cac6a..6ab0e852ca1e 100644 --- a/dev-python/jsonpatch/jsonpatch-1.33.ebuild +++ b/dev-python/jsonpatch/jsonpatch-1.33.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -35,6 +35,14 @@ BDEPEND=" ) " +src_prepare() { + distutils-r1_src_prepare + + # https://github.com/stefankoegl/python-json-patch/pull/159 + sed -e 's/unittest.makeSuite/unittest.defaultTestLoader.loadTestsFromTestCase/' \ + -i ext_tests.py tests.py +} + python_test() { "${EPYTHON}" tests.py || die "Tests of tests.py fail with ${EPYTHON}" "${EPYTHON}" ext_tests.py || die "Tests of ext_tests.py fail with ${EPYTHON}" -- cgit v1.3.1