diff --git a/pkgs/development/python-modules/sqlalchemy-utc/default.nix b/pkgs/development/python-modules/sqlalchemy-utc/default.nix index c1b5f9a41ff4..bea5ee19946b 100644 --- a/pkgs/development/python-modules/sqlalchemy-utc/default.nix +++ b/pkgs/development/python-modules/sqlalchemy-utc/default.nix @@ -22,6 +22,8 @@ buildPythonPackage (finalAttrs: { patches = [ # https://github.com/spoqa/sqlalchemy-utc/pull/20 ./sqlalchemy2-compat.patch + # https://github.com/spoqa/sqlalchemy-utc/pull/21\ + ./python314-compat.patch ]; build-system = [ diff --git a/pkgs/development/python-modules/sqlalchemy-utc/python314-compat.patch b/pkgs/development/python-modules/sqlalchemy-utc/python314-compat.patch new file mode 100644 index 000000000000..4d8e08137ddf --- /dev/null +++ b/pkgs/development/python-modules/sqlalchemy-utc/python314-compat.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index 2da8f43..1927e60 100644 +--- a/setup.py ++++ b/setup.py +@@ -34,7 +34,7 @@ def get_version(): + continue + target, = node.targets + if isinstance(target, ast.Name) and target.id == '__version__': +- return node.value.s ++ return node.value.value + + + install_requires = ['setuptools', 'SQLAlchemy >= 0.9.0']