mongodb: pin scons to python311

Building mongodb with python312 fails:

ModuleNotFoundError: No module named 'imp':
  File "/build/source/SConstruct", line 46:
    from buildscripts import moduleconfig
  File "/build/source/buildscripts/moduleconfig.py", line 30:
    import imp
This commit is contained in:
qubitnano 2024-07-09 17:23:32 -04:00
parent 84cfe26048
commit 6c879c9e5e

View File

@ -13,7 +13,7 @@
, openldap , openldap
, openssl , openssl
, libpcap , libpcap
, python3 , python311
, curl , curl
, Security , Security
, CoreFoundation , CoreFoundation
@ -33,7 +33,7 @@ with lib;
}: }:
let let
scons = buildPackages.scons; scons = buildPackages.scons.override{ python3 = python311; };
python = scons.python.withPackages (ps: with ps; [ python = scons.python.withPackages (ps: with ps; [
pyyaml pyyaml
cheetah3 cheetah3