diff --git a/debian/changelog b/debian/changelog index be0f238..6107cc8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-graphene-sqlalchemy (2.1.2-0kali2) kali-dev; urgency=medium + + * Do not use obsolete the package python3-singledispatch + + -- Sophie Brun Tue, 26 Apr 2022 11:58:35 +0200 + python-graphene-sqlalchemy (2.1.2-0kali1) kali-dev; urgency=medium [ Raphaƫl Hertzog ] diff --git a/debian/control b/debian/control index a2a8cc6..d24a9d8 100644 --- a/debian/control +++ b/debian/control @@ -11,7 +11,6 @@ python3-mock, python3-pytest, python3-setuptools, - python3-singledispatch, python3-six, python3-sqlalchemy, python3-sqlalchemy-utils @@ -23,7 +22,6 @@ Package: python3-graphene-sqlalchemy Architecture: all Depends: python3-graphene (>= 2.1.3), - python3-singledispatch, ${misc:Depends}, ${python3:Depends} Description: Graphene SQLAlchemy integration (Python 3) diff --git a/debian/patches/fix-import-singledispatch-python3.10 b/debian/patches/fix-import-singledispatch-python3.10 new file mode 100644 index 0000000..b680af4 --- /dev/null +++ b/debian/patches/fix-import-singledispatch-python3.10 @@ -0,0 +1,23 @@ +From: Sophie Brun +Date: Tue, 26 Apr 2022 11:54:54 +0200 +Subject: Use functions.singledispatch + + +Debian-Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933689 +The Python module python3-singledispatch is obsolete, and even broken +since Python3.10 +--- + graphene_sqlalchemy/converter.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/graphene_sqlalchemy/converter.py b/graphene_sqlalchemy/converter.py +index 7cc259e..9d561d9 100644 +--- a/graphene_sqlalchemy/converter.py ++++ b/graphene_sqlalchemy/converter.py +@@ -1,4 +1,5 @@ +-from singledispatch import singledispatch ++from functools import singledispatch ++ + from sqlalchemy import types + from sqlalchemy.dialects import postgresql + from sqlalchemy.orm import interfaces diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..199215c --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fix-import-singledispatch-python3.10