Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pytrainer: 2.1.0 -> 2.2.1

The new version supports SQLAlchemy version >2 allowing us to remove
the custom version.

+12 -17
+12 -17
pkgs/applications/misc/pytrainer/default.nix
··· 23 matplotlib = super.matplotlib.override { 24 enableGtk3 = true; 25 }; 26 - sqlalchemy = super.sqlalchemy.overridePythonAttrs (old: rec { 27 - version = "1.4.46"; 28 - src = fetchPypi { 29 - pname = "SQLAlchemy"; 30 - inherit version; 31 - hash = "sha256-aRO4JH2KKS74MVFipRkx4rQM6RaB8bbxj2lwRSAMSjA="; 32 - }; 33 - disabledTestPaths = [ 34 - "test/aaa_profiling" 35 - "test/ext/mypy" 36 - ]; 37 - }); 38 }); 39 }; 40 in python.pkgs.buildPythonApplication rec { 41 pname = "pytrainer"; 42 - version = "2.1.0"; 43 44 src = fetchFromGitHub { 45 owner = "pytrainer"; 46 repo = "pytrainer"; 47 rev = "v${version}"; 48 - sha256 = "sha256-U2SVQKkr5HF7LB0WuCZ1xc7TljISjCNO26QUDGR+W/4="; 49 }; 50 51 propagatedBuildInputs = with python.pkgs; [ 52 - sqlalchemy-migrate 53 python-dateutil 54 matplotlib 55 lxml ··· 85 psycopg2 86 ]); 87 88 checkPhase = '' 89 - env HOME=$TEMPDIR TZDIR=${tzdata}/share/zoneinfo \ 90 TZ=Europe/Kaliningrad \ 91 - LC_ALL=en_US.UTF-8 \ 92 xvfb-run -s '-screen 0 800x600x24' \ 93 ${python.interpreter} setup.py test 94 '';
··· 23 matplotlib = super.matplotlib.override { 24 enableGtk3 = true; 25 }; 26 }); 27 }; 28 in python.pkgs.buildPythonApplication rec { 29 pname = "pytrainer"; 30 + version = "2.2.1"; 31 32 src = fetchFromGitHub { 33 owner = "pytrainer"; 34 repo = "pytrainer"; 35 rev = "v${version}"; 36 + hash = "sha256-t61vHVTKN5KsjrgbhzljB7UZdRask7qfYISd+++QbV0="; 37 }; 38 39 propagatedBuildInputs = with python.pkgs; [ 40 + sqlalchemy 41 python-dateutil 42 matplotlib 43 lxml ··· 73 psycopg2 74 ]); 75 76 + postPatch = '' 77 + substituteInPlace pytrainer/platform.py \ 78 + --replace 'sys.prefix' "\"$out\"" 79 + ''; 80 + 81 checkPhase = '' 82 + env \ 83 + HOME=$TEMPDIR \ 84 + TZDIR=${tzdata}/share/zoneinfo \ 85 TZ=Europe/Kaliningrad \ 86 + LC_TIME=C \ 87 xvfb-run -s '-screen 0 800x600x24' \ 88 ${python.interpreter} setup.py test 89 '';