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:
parent
10f8156d49
commit
535bebcc6b
|
@ -1,5 +1,5 @@
|
||||||
{ lib
|
{ lib
|
||||||
, python3
|
, python310
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, gdk-pixbuf
|
, gdk-pixbuf
|
||||||
, gnome
|
, gnome
|
||||||
|
@ -17,11 +17,19 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
python = python3.override {
|
python = python310.override {
|
||||||
packageOverrides = (self: super: {
|
packageOverrides = (self: super: {
|
||||||
matplotlib = super.matplotlib.override {
|
matplotlib = super.matplotlib.override {
|
||||||
enableGtk3 = true;
|
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 {
|
in python.pkgs.buildPythonApplication rec {
|
||||||
|
@ -77,7 +85,7 @@ in python.pkgs.buildPythonApplication rec {
|
||||||
TZ=Europe/Kaliningrad \
|
TZ=Europe/Kaliningrad \
|
||||||
LC_ALL=en_US.UTF-8 \
|
LC_ALL=en_US.UTF-8 \
|
||||||
xvfb-run -s '-screen 0 800x600x24' \
|
xvfb-run -s '-screen 0 800x600x24' \
|
||||||
${python3.interpreter} setup.py test
|
${python.interpreter} setup.py test
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue