Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / omorfi / importfix.patch
blob67a54363c7b17aacd3de76d1dae25f454b8db9c2
1 diff --git a/src/python/omorfi/entryguessing/gradation.py b/src/python/omorfi/entryguessing/gradation.py
2 index 7d3ed8cb..825d7ead 100755
3 --- a/src/python/omorfi/entryguessing/gradation.py
4 +++ b/src/python/omorfi/entryguessing/gradation.py
5 @@ -17,8 +17,8 @@
6 # You should have received a copy of the GNU General Public License
7 # along with this program. If not, see <http://www.gnu.org/licenses/>.
9 -from .omorfi.error_logging import fail_guess_because
10 -from .omorfi.string_mangling import replace_rightmost, replace_rightmosts
11 +from omorfi.error_logging import fail_guess_because
12 +from omorfi.string_manglers import replace_rightmost, replace_rightmosts
15 def gradation_make_morphophonemes(wordmap):
16 diff --git a/src/python/omorfi/entryguessing/guess_new_class.py b/src/python/omorfi/entryguessing/guess_new_class.py
17 index 1884716b..3a781bfc 100755
18 --- a/src/python/omorfi/entryguessing/guess_new_class.py
19 +++ b/src/python/omorfi/entryguessing/guess_new_class.py
20 @@ -17,8 +17,8 @@
21 # You should have received a copy of the GNU General Public License
22 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24 -from .error_logging import fail_guess_because
25 -from .string_manglers import three_syllable
26 +from omorfi.error_logging import fail_guess_because
27 +from omorfi.string_manglers import three_syllable
30 def guess_new_class(wordmap):
31 diff --git a/src/python/omorfi/entryguessing/plurale_tantum.py b/src/python/omorfi/entryguessing/plurale_tantum.py
32 index a8af81fb..95fc4b7b 100755
33 --- a/src/python/omorfi/entryguessing/plurale_tantum.py
34 +++ b/src/python/omorfi/entryguessing/plurale_tantum.py
35 @@ -17,8 +17,8 @@
36 # You should have received a copy of the GNU General Public License
37 # along with this program. If not, see <http://www.gnu.org/licenses/>.
39 -from .error_logging import fail_guess_because
40 -from .omorfi.string_manglers import replace_rightmost, replace_rightmosts
41 +from omorfi.error_logging import fail_guess_because
42 +from omorfi.string_manglers import replace_rightmost, replace_rightmosts
45 def plurale_tantum_get_singular_stem(wordmap):
46 diff --git a/src/python/omorfi/formats/experimental_xml_formatter.py b/src/python/omorfi/formats/experimental_xml_formatter.py
47 index abccbff5..11b0f518 100755
48 --- a/src/python/omorfi/formats/experimental_xml_formatter.py
49 +++ b/src/python/omorfi/formats/experimental_xml_formatter.py
50 @@ -19,9 +19,9 @@
52 from xml.sax.saxutils import escape as xml_escape
54 -from ftb3_formatter import Ftb3Formatter
55 +from .ftb3_formatter import Ftb3Formatter
57 -from .settings import version_id_easter_egg
58 +from omorfi.settings import version_id_easter_egg
61 def make_xmlid(s):
62 diff --git a/src/python/omorfi/formats/lexc_formatter.py b/src/python/omorfi/formats/lexc_formatter.py
63 index 4ec616b7..b146129f 100755
64 --- a/src/python/omorfi/formats/lexc_formatter.py
65 +++ b/src/python/omorfi/formats/lexc_formatter.py
66 @@ -19,8 +19,8 @@
68 # functions for formatting the database data to lexc
70 -from .settings import deriv_boundary, morph_boundary, newword_boundary, optional_hyphen, stub_boundary, word_boundary
71 -from .string_manglers import lexc_escape
72 +from omorfi.settings import deriv_boundary, morph_boundary, newword_boundary, optional_hyphen, stub_boundary, word_boundary
73 +from omorfi.string_manglers import lexc_escape
76 def format_copyright_lexc():