From 89200676c40db7ae0fec71f98f0f640bea9113dc Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 21 May 2025 04:10:44 +0200 Subject: [PATCH] gixy: fix python3.13 compat --- pkgs/by-name/gi/gixy/package.nix | 1 + pkgs/by-name/gi/gixy/python3.13-compat.patch | 25 ++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/by-name/gi/gixy/python3.13-compat.patch diff --git a/pkgs/by-name/gi/gixy/package.nix b/pkgs/by-name/gi/gixy/package.nix index 5d1bfb65d4c2..2e7a1206fa37 100644 --- a/pkgs/by-name/gi/gixy/package.nix +++ b/pkgs/by-name/gi/gixy/package.nix @@ -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 ]; diff --git a/pkgs/by-name/gi/gixy/python3.13-compat.patch b/pkgs/by-name/gi/gixy/python3.13-compat.patch new file mode 100644 index 000000000000..c7265461ffad --- /dev/null +++ b/pkgs/by-name/gi/gixy/python3.13-compat.patch @@ -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