forked from mirrors/nixpkgs
Merge pull request #212111 from linsui/python
ms-python.python: 2022.19.13351014 -> 2023.1.10091012
This commit is contained in:
commit
a743cf65d3
|
@ -12,6 +12,7 @@
|
||||||
, curl
|
, curl
|
||||||
, coreutils
|
, coreutils
|
||||||
, gnused
|
, gnused
|
||||||
|
, jq
|
||||||
, nix
|
, nix
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -19,8 +20,8 @@ vscode-utils.buildVscodeMarketplaceExtension rec {
|
||||||
mktplcRef = {
|
mktplcRef = {
|
||||||
name = "python";
|
name = "python";
|
||||||
publisher = "ms-python";
|
publisher = "ms-python";
|
||||||
version = "2022.19.13351014";
|
version = "2023.1.10091012";
|
||||||
sha256 = "1562f4b0v76p1wfbljc5zydq7aq7k5hshxzm2v1whb77cjskiw8s";
|
sha256 = "sha256-JosFv6ngJmw1XRILwTZMVxlGIdWFLFQjj4olfnVwAIM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ icu ];
|
buildInputs = [ icu ];
|
||||||
|
@ -29,7 +30,6 @@ vscode-utils.buildVscodeMarketplaceExtension rec {
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
debugpy
|
debugpy
|
||||||
isort
|
|
||||||
jedi-language-server
|
jedi-language-server
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -57,14 +57,16 @@ vscode-utils.buildVscodeMarketplaceExtension rec {
|
||||||
curl
|
curl
|
||||||
coreutils
|
coreutils
|
||||||
gnused
|
gnused
|
||||||
|
jq
|
||||||
nix
|
nix
|
||||||
]}
|
]}
|
||||||
|
|
||||||
api=$(curl -s 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery' \
|
api=$(curl -s 'https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery' \
|
||||||
-H 'accept: application/json;api-version=3.0-preview.1' \
|
-H 'accept: application/json;api-version=3.0-preview.1' \
|
||||||
-H 'content-type: application/json' \
|
-H 'content-type: application/json' \
|
||||||
--data-raw '{"filters":[{"criteria":[{"filterType":7,"value":"${mktplcRef.publisher}.${mktplcRef.name}"}]}],"flags":512}')
|
--data-raw '{"filters":[{"criteria":[{"filterType":7,"value":"${mktplcRef.publisher}.${mktplcRef.name}"}]}],"flags":16}')
|
||||||
version=$(echo $api | sed -n -E 's|^.*"version":"([0-9.]+)".*$|\1|p')
|
# Find the latest version compatible with stable vscode version
|
||||||
|
version=$(echo $api | jq -r '.results[0].extensions[0].versions | map(select(has("properties"))) | map(select(.properties | map(select(.key == "Microsoft.VisualStudio.Code.Engine")) | .[0].value | test("\\^[0-9.]+$"))) | .[0].version')
|
||||||
|
|
||||||
if [[ $version != ${mktplcRef.version} ]]; then
|
if [[ $version != ${mktplcRef.version} ]]; then
|
||||||
tmp=$(mktemp)
|
tmp=$(mktemp)
|
||||||
|
|
Loading…
Reference in a new issue