asterisk: use latest python for update script
This commit is contained in:
parent
c283c92d90
commit
2289a489c2
2 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@
|
|||
, libtool
|
||||
, automake
|
||||
, fetchpatch
|
||||
, python39
|
||||
, python3
|
||||
, writeScript
|
||||
, withOpus ? true
|
||||
, ldapSupport ? false
|
||||
|
@ -193,7 +193,7 @@ let
|
|||
})
|
||||
(lib.importJSON ./versions.json);
|
||||
|
||||
updateScript_python = python39.withPackages (p: with p; [ packaging beautifulsoup4 requests ]);
|
||||
updateScript_python = python3.withPackages (p: with p; [ packaging beautifulsoup4 requests ]);
|
||||
updateScript = writeScript "asterisk-update" ''
|
||||
#!/usr/bin/env bash
|
||||
exec ${updateScript_python}/bin/python ${toString ./update.py}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i python3 -p python39 python39.pkgs.packaging python39.pkgs.beautifulsoup4 python39.pkgs.requests
|
||||
#!nix-shell -i python3 -p python3 python3.pkgs.packaging python3.pkgs.beautifulsoup4 python3.pkgs.requests
|
||||
# mirrored in ./default.nix
|
||||
from packaging import version
|
||||
from bs4 import BeautifulSoup
|
||||
|
|
Loading…
Reference in a new issue