gixy: fix python3.13 compat

This commit is contained in:
Martin Weinelt
2025-05-23 08:37:37 -07:00
committed by Robert Schütz
parent 4a02374a8d
commit 89200676c4
2 changed files with 26 additions and 0 deletions
+1
View File
@@ -43,6 +43,7 @@ python.pkgs.buildPythonApplication rec {
url = "https://github.com/yandex/gixy/compare/6f68624a7540ee51316651bda656894dc14c9a3e...b1c6899b3733b619c244368f0121a01be028e8c2.patch";
hash = "sha256-6VUF2eQ2Haat/yk8I5qIXhHdG9zLQgEXJMLfe25OKEo=";
})
./python3.13-compat.patch
];
build-system = [ python.pkgs.setuptools ];
@@ -0,0 +1,25 @@
diff --git a/gixy/core/sre_parse/sre_parse.py b/gixy/core/sre_parse/sre_parse.py
index df69044..f90c795 100644
--- a/gixy/core/sre_parse/sre_parse.py
+++ b/gixy/core/sre_parse/sre_parse.py
@@ -14,7 +14,7 @@ from __future__ import print_function
"""Internal support module for sre"""
-from sre_constants import *
+from gixy.core.sre_parse.sre_constants import *
SPECIAL_CHARS = ".\\[{()*+?^$|"
REPEAT_CHARS = "*+?{"
diff --git a/tests/plugins/test_simply.py b/tests/plugins/test_simply.py
index 1a33c63..7d5a32f 100644
--- a/tests/plugins/test_simply.py
+++ b/tests/plugins/test_simply.py
@@ -5,6 +5,7 @@ from os import path
import json
from ..utils import *
+from gixy.formatters.base import BaseFormatter
from gixy.core.manager import Manager as Gixy
from gixy.core.plugins_manager import PluginsManager
from gixy.core.config import Config