python3Packages.sqlalchemy-utc: fix 3.14 build (#506836)

This commit is contained in:
Martin Weinelt
2026-04-05 02:40:03 +00:00
committed by GitHub
2 changed files with 15 additions and 0 deletions
@@ -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 = [
@@ -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']