commit: 0030bb528b180f4571a18cec53469a276258327e
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 6 12:12:39 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov 6 14:06:27 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0030bb52
dev-python/qiskit-terra: Fix rustworkx support
Fix qiskit-terra to support rustworkx, the new name of retworkx.
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../{qiskit-terra-0.22.0.ebuild => qiskit-terra-0.22.0-r1.ebuild} | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dev-python/qiskit-terra/qiskit-terra-0.22.0.ebuild
b/dev-python/qiskit-terra/qiskit-terra-0.22.0-r1.ebuild
similarity index 97%
rename from dev-python/qiskit-terra/qiskit-terra-0.22.0.ebuild
rename to dev-python/qiskit-terra/qiskit-terra-0.22.0-r1.ebuild
index 7a0c507d8577..fd442eceacd3 100644
--- a/dev-python/qiskit-terra/qiskit-terra-0.22.0.ebuild
+++ b/dev-python/qiskit-terra/qiskit-terra-0.22.0-r1.ebuild
@@ -128,6 +128,11 @@ distutils_enable_tests pytest
# and an exact comparison of float switched to approximate comparison.
#PATCHES=( "${FILESDIR}/qiskit-terra-0.19.2-test-corrections.patch" )
+src_prepare() {
+ find -name '*.py' -exec sed -i -e 's:retworkx:rustworkx:' {} + || die
+ distutils-r1_src_prepare
+}
+
python_test() {
# We have to hide the source code directory so tests
# do not use these, but instead the compiled library.