mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 00:37:38 +00:00
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
|
||||
, 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; {
|
||||
|
Loading…
Reference in New Issue
Block a user