diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-21 21:23:00 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:36:53 +0100 |
| commit | ce990064f805bbd60c2a96dbda50f17d008cf4c1 (patch) | |
| tree | 180336b834ce10d4034a2255fbecc975d0caffc3 /gnu/packages/patches/python-mox3-python3.6-compat.patch | |
| parent | ad6fd4419924a4cdd52902d58edbbb6f4c5ad2e9 (diff) | |
gnu: Remove python-mox3.
Unmaintained, fails to build, no users in Guix, see:
<http://git.openstack.org/cgit/openstack/mox3>.
* gnu/packages/openstack.scm (python-mox3): Delete variable.
* gnu/packages/patches/python-mox3-python3.6-compat.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Unregister patch.
Change-Id: Idde550fee66f2e80e07a7269bd9b0e8cadcb058b
Diffstat (limited to 'gnu/packages/patches/python-mox3-python3.6-compat.patch')
| -rw-r--r-- | gnu/packages/patches/python-mox3-python3.6-compat.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/gnu/packages/patches/python-mox3-python3.6-compat.patch b/gnu/packages/patches/python-mox3-python3.6-compat.patch deleted file mode 100644 index 0426d07cf9..0000000000 --- a/gnu/packages/patches/python-mox3-python3.6-compat.patch +++ /dev/null @@ -1,43 +0,0 @@ -Fix regex so that it works with Python 3.6. - -See <https://docs.python.org/3/library/re.html#re.LOCALE>. - -Copied from upstream bug report: -https://bugs.launchpad.net/python-mox3/+bug/1665266 - -From 05064cdb6ea7a16450c6beae2b6f7c6074212a69 Mon Sep 17 00:00:00 2001 -From: Zac Medico <zmedico@gentoo.org> -Date: Thu, 16 Feb 2017 00:24:10 -0800 -Subject: [PATCH] RegexTest: python3.6 compatibility - -These fixes are backward-compatible with older python versions: - -* raw strings fix invalid escape sequences -* flags=8 fixes ValueError: cannot use LOCALE flag with a str pattern ---- - mox3/tests/test_mox.py | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/mox3/tests/test_mox.py b/mox3/tests/test_mox.py -index 15ac565..3a1af17 100644 ---- a/mox3/tests/test_mox.py -+++ b/mox3/tests/test_mox.py -@@ -312,12 +312,12 @@ class RegexTest(testtools.TestCase): - def testReprWithoutFlags(self): - """repr should return the regular expression pattern.""" - self.assertTrue( -- repr(mox.Regex(r"a\s+b")) == "<regular expression 'a\s+b'>") -+ repr(mox.Regex(r"a\s+b")) == r"<regular expression 'a\s+b'>") - - def testReprWithFlags(self): - """repr should return the regular expression pattern and flags.""" -- self.assertTrue(repr(mox.Regex(r"a\s+b", flags=4)) == -- "<regular expression 'a\s+b', flags=4>") -+ self.assertTrue(repr(mox.Regex(r"a\s+b", flags=8)) == -+ r"<regular expression 'a\s+b', flags=8>") - - - class IsTest(testtools.TestCase): --- -2.10.2 - |
