Update to python3 and fix ssl.wrap_socket removal in 3.12
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
supportedSystems = with flake-utils.lib.system; [ x86_64-linux i686-linux aarch64-linux ];
|
||||
in {
|
||||
overlay = final: prev: {
|
||||
drastikbot = prev.python311.pkgs.buildPythonApplication rec {
|
||||
drastikbot = prev.python3.pkgs.buildPythonApplication rec {
|
||||
pname = "drastikbot";
|
||||
version = "v2.1";
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
cp -r $src/src/* $out
|
||||
|
||||
mkdir -p $out/bin
|
||||
makeWrapper ${prev.python311}/bin/python3 $out/bin/drastikbot \
|
||||
--prefix PYTHONPATH : ${with prev.python311.pkgs; makePythonPath [requests beautifulsoup4]} \
|
||||
makeWrapper ${prev.python3}/bin/python3 $out/bin/drastikbot \
|
||||
--prefix PYTHONPATH : ${with prev.python3.pkgs; makePythonPath [requests beautifulsoup4]} \
|
||||
--add-flags "$out/drastikbot.py"
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user