Unverified Commit 1e0e33c1 authored by Franz Pletz's avatar Franz Pletz
Browse files

grass: pin to python 3.11



Pin to Python 3.11 since wxpython is not yet compatible to Python 3.12.

Co-authored-by: default avatarIvan Mincik <ivan.mincik@gmail.com>
parent 1c2d0491
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@
, pkg-config
, postgresql
, proj
, python3Packages
, python311Packages
, readline
, sqlite
, wxGTK32
@@ -31,6 +31,9 @@
, zstd
}:

let
  pyPackages = python311Packages;
in
stdenv.mkDerivation (finalAttrs: {
  pname = "grass";
  version = "8.3.2";
@@ -53,7 +56,7 @@ stdenv.mkDerivation (finalAttrs: {
    libmysqlclient # for `mysql_config`
    netcdf # for `nc-config`
    pkg-config
  ] ++ (with python3Packages; [ python-dateutil numpy wxpython ]);
  ] ++ (with pyPackages; [ python-dateutil numpy wxpython ]);

  buildInputs = [
    blas
@@ -127,7 +130,7 @@ stdenv.mkDerivation (finalAttrs: {
  postInstall = ''
    wrapProgram $out/bin/grass \
    --set PYTHONPATH $PYTHONPATH \
    --set GRASS_PYTHON ${python3Packages.python.interpreter} \
    --set GRASS_PYTHON ${pyPackages.python.interpreter} \
    --suffix LD_LIBRARY_PATH ':' '${gdal}/lib'
    ln -s $out/grass*/lib $out/lib
    ln -s $out/grass*/include $out/include