Merge pull request #243491 from dotlambda/asterisk-python310

asterisk: use latest python for update script
This commit is contained in:
Nick Cao 2023-07-14 18:19:46 -06:00 committed by GitHub
commit 46f3dff227
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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}

View file

@ -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