Merge pull request #311430 from Shawn8901/update-ms-python

vscode-extensions.ms-python.python: 2023.1.10091012 -> 2024.5.11021008
This commit is contained in:
Weijia Wang 2024-05-13 23:40:43 +02:00 committed by GitHub
commit a8a3cf536e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,8 +21,8 @@ vscode-utils.buildVscodeMarketplaceExtension rec {
mktplcRef = {
name = "python";
publisher = "ms-python";
version = "2023.1.10091012";
hash = "sha256-JosFv6ngJmw1XRILwTZMVxlGIdWFLFQjj4olfnVwAIM=";
version = "2024.5.11021008";
hash = "sha256-UnI0leRKqCtFLBdGS/UvLuCcxQhibyY0ChmzQ9uytoY=";
};
buildInputs = [ icu ];
@ -37,11 +37,11 @@ vscode-utils.buildVscodeMarketplaceExtension rec {
postPatch =
''
# remove bundled python deps and use libs from nixpkgs
rm -r pythonFiles/lib
mkdir -p pythonFiles/lib/python/
ln -s ${python3.pkgs.debugpy}/lib/*/site-packages/debugpy pythonFiles/lib/python/
rm -r python_files/lib
mkdir -p python_files/lib/python/
ln -s ${python3.pkgs.debugpy}/lib/*/site-packages/debugpy python_files/lib/python/
buildPythonPath "$propagatedBuildInputs"
for i in pythonFiles/*.py; do
for i in python_files/*.py; do
patchPythonScript "$i"
done
''