Unverified Commit 3322d8b7 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

vscode-extensions.ms-python.mypy-type-checker: do not set default `mypy` path (#380338)

parents 1d9354ee 1004b767
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
{
  lib,
  vscode-utils,
  mypy,
  jq,
  moreutils,
}:

vscode-utils.buildVscodeMarketplaceExtension {
@@ -14,17 +11,6 @@ vscode-utils.buildVscodeMarketplaceExtension {
    hash = "sha256-boKUxLOAgQJP13zX/NMhg1MtcrPVQJt5gLbxI7gVSu4=";
  };

  buildInputs = [ mypy ];

  nativeBuildInputs = [
    jq
    moreutils
  ];

  postInstall = ''
    jq '.contributes.configuration.properties."mypy-type-checker.path".default = "${lib.getExe mypy}"' $out/$installPrefix/package.json | sponge $out/$installPrefix/package.json
  '';

  meta = {
    changelog = "https://github.com/microsoft/vscode-mypy/releases";
    description = "VSCode extension for type checking support for Python files using Mypy";