gixy: fix python3.13 compat
This commit is contained in:
committed by
Robert Schütz
parent
4a02374a8d
commit
89200676c4
@@ -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
|
||||
Reference in New Issue
Block a user