pytrainer: pin sqlalchemy at 1.4.46

Sqlalchemy-migrate is incompatible with SQLAlchemy 2.0.
Also pin to python310 because sqlalchemy-migrate is incompatible with
Python 3.11.
This commit is contained in:
Robert Schütz
2023-03-03 23:57:09 +01:00
committed by Martin Weinelt
parent 10f8156d49
commit 535bebcc6b
+11 -3
View File
@@ -1,5 +1,5 @@
{ lib
, python3
, python310
, fetchFromGitHub
, gdk-pixbuf
, gnome
@@ -17,11 +17,19 @@
}:
let
python = python3.override {
python = python310.override {
packageOverrides = (self: super: {
matplotlib = super.matplotlib.override {
enableGtk3 = true;
};
sqlalchemy = super.sqlalchemy.overridePythonAttrs (old: rec {
version = "1.4.46";
src = self.fetchPypi {
pname = "SQLAlchemy";
inherit version;
hash = "sha256-aRO4JH2KKS74MVFipRkx4rQM6RaB8bbxj2lwRSAMSjA=";
};
});
});
};
in python.pkgs.buildPythonApplication rec {
@@ -77,7 +85,7 @@ in python.pkgs.buildPythonApplication rec {
TZ=Europe/Kaliningrad \
LC_ALL=en_US.UTF-8 \
xvfb-run -s '-screen 0 800x600x24' \
${python3.interpreter} setup.py test
${python.interpreter} setup.py test
'';
meta = with lib; {