pyright: 1.1.382 -> 1.1.391

+66 -110
+37 -96
pkgs/by-name/py/pyright/package-lock.json
··· 1 { 2 "name": "pyright-root", 3 - "lockfileVersion": 2, 4 "requires": true, 5 "packages": { 6 "": { 7 "name": "pyright-root", 8 - "hasInstallScript": true, 9 - "dependencies": { 10 "glob": "^7.2.3", 11 - "jsonc-parser": "^3.2.1" 12 } 13 }, 14 "node_modules/balanced-match": { 15 "version": "1.0.2", 16 "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 17 - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 18 }, 19 "node_modules/brace-expansion": { 20 "version": "1.1.11", 21 "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 22 "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 23 "dependencies": { 24 "balanced-match": "^1.0.0", 25 "concat-map": "0.0.1" ··· 28 "node_modules/concat-map": { 29 "version": "0.0.1", 30 "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 31 - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" 32 }, 33 "node_modules/fs.realpath": { 34 "version": "1.0.0", 35 "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 36 - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" 37 }, 38 "node_modules/glob": { 39 "version": "7.2.3", 40 "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 41 "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 42 "dependencies": { 43 "fs.realpath": "^1.0.0", 44 "inflight": "^1.0.4", ··· 58 "version": "1.0.6", 59 "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 60 "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 61 "dependencies": { 62 "once": "^1.3.0", 63 "wrappy": "1" ··· 66 "node_modules/inherits": { 67 "version": "2.0.4", 68 "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 69 - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 70 }, 71 "node_modules/jsonc-parser": { 72 - "version": "3.2.1", 73 - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.1.tgz", 74 - "integrity": "sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==" 75 }, 76 "node_modules/minimatch": { 77 "version": "3.1.2", 78 "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 79 "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 80 "dependencies": { 81 "brace-expansion": "^1.1.7" 82 }, ··· 88 "version": "1.4.0", 89 "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 90 "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 91 "dependencies": { 92 "wrappy": "1" 93 } ··· 96 "version": "1.0.1", 97 "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 98 "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 99 "engines": { 100 "node": ">=0.10.0" 101 } ··· 103 "node_modules/wrappy": { 104 "version": "1.0.2", 105 "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 106 - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" 107 - } 108 - }, 109 - "dependencies": { 110 - "balanced-match": { 111 - "version": "1.0.2", 112 - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 113 - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 114 - }, 115 - "brace-expansion": { 116 - "version": "1.1.11", 117 - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 118 - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 119 - "requires": { 120 - "balanced-match": "^1.0.0", 121 - "concat-map": "0.0.1" 122 - } 123 - }, 124 - "concat-map": { 125 - "version": "0.0.1", 126 - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 127 - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" 128 - }, 129 - "fs.realpath": { 130 - "version": "1.0.0", 131 - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 132 - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" 133 - }, 134 - "glob": { 135 - "version": "7.2.3", 136 - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 137 - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 138 - "requires": { 139 - "fs.realpath": "^1.0.0", 140 - "inflight": "^1.0.4", 141 - "inherits": "2", 142 - "minimatch": "^3.1.1", 143 - "once": "^1.3.0", 144 - "path-is-absolute": "^1.0.0" 145 - } 146 - }, 147 - "inflight": { 148 - "version": "1.0.6", 149 - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 150 - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 151 - "requires": { 152 - "once": "^1.3.0", 153 - "wrappy": "1" 154 - } 155 - }, 156 - "inherits": { 157 - "version": "2.0.4", 158 - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 159 - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 160 - }, 161 - "jsonc-parser": { 162 - "version": "3.2.1", 163 - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.1.tgz", 164 - "integrity": "sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA==" 165 - }, 166 - "minimatch": { 167 - "version": "3.1.2", 168 - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 169 - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 170 - "requires": { 171 - "brace-expansion": "^1.1.7" 172 - } 173 - }, 174 - "once": { 175 - "version": "1.4.0", 176 - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 177 - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 178 - "requires": { 179 - "wrappy": "1" 180 - } 181 - }, 182 - "path-is-absolute": { 183 - "version": "1.0.1", 184 - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 185 - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" 186 - }, 187 - "wrappy": { 188 - "version": "1.0.2", 189 - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 190 - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" 191 } 192 } 193 }
··· 1 { 2 "name": "pyright-root", 3 + "lockfileVersion": 3, 4 "requires": true, 5 "packages": { 6 "": { 7 "name": "pyright-root", 8 + "devDependencies": { 9 "glob": "^7.2.3", 10 + "jsonc-parser": "^3.3.1" 11 } 12 }, 13 "node_modules/balanced-match": { 14 "version": "1.0.2", 15 "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 16 + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 17 + "dev": true, 18 + "license": "MIT" 19 }, 20 "node_modules/brace-expansion": { 21 "version": "1.1.11", 22 "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 23 "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 24 + "dev": true, 25 + "license": "MIT", 26 "dependencies": { 27 "balanced-match": "^1.0.0", 28 "concat-map": "0.0.1" ··· 31 "node_modules/concat-map": { 32 "version": "0.0.1", 33 "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 34 + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 35 + "dev": true, 36 + "license": "MIT" 37 }, 38 "node_modules/fs.realpath": { 39 "version": "1.0.0", 40 "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 41 + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 42 + "dev": true, 43 + "license": "ISC" 44 }, 45 "node_modules/glob": { 46 "version": "7.2.3", 47 "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 48 "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 49 + "deprecated": "Glob versions prior to v9 are no longer supported", 50 + "dev": true, 51 + "license": "ISC", 52 "dependencies": { 53 "fs.realpath": "^1.0.0", 54 "inflight": "^1.0.4", ··· 68 "version": "1.0.6", 69 "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 70 "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 71 + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", 72 + "dev": true, 73 + "license": "ISC", 74 "dependencies": { 75 "once": "^1.3.0", 76 "wrappy": "1" ··· 79 "node_modules/inherits": { 80 "version": "2.0.4", 81 "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 82 + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 83 + "dev": true, 84 + "license": "ISC" 85 }, 86 "node_modules/jsonc-parser": { 87 + "version": "3.3.1", 88 + "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz", 89 + "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==", 90 + "dev": true, 91 + "license": "MIT" 92 }, 93 "node_modules/minimatch": { 94 "version": "3.1.2", 95 "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 96 "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 97 + "dev": true, 98 + "license": "ISC", 99 "dependencies": { 100 "brace-expansion": "^1.1.7" 101 }, ··· 107 "version": "1.4.0", 108 "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 109 "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 110 + "dev": true, 111 + "license": "ISC", 112 "dependencies": { 113 "wrappy": "1" 114 } ··· 117 "version": "1.0.1", 118 "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 119 "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 120 + "dev": true, 121 + "license": "MIT", 122 "engines": { 123 "node": ">=0.10.0" 124 } ··· 126 "node_modules/wrappy": { 127 "version": "1.0.2", 128 "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 129 + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 130 + "dev": true, 131 + "license": "ISC" 132 } 133 } 134 }
+15 -8
pkgs/by-name/py/pyright/package.nix
··· 1 - { lib, buildNpmPackage, fetchFromGitHub, runCommand, jq }: 2 3 let 4 - version = "1.1.382"; 5 6 src = fetchFromGitHub { 7 owner = "Microsoft"; 8 repo = "pyright"; 9 - rev = "${version}"; 10 - hash = "sha256-/qmDCx1bkqCF/4T3jNz2xiUYwnVYw5IOguRW8DYVQZg="; 11 }; 12 13 patchedPackageJSON = runCommand "package.json" { } '' ··· 20 pyright-root = buildNpmPackage { 21 pname = "pyright-root"; 22 inherit version src; 23 - npmDepsHash = "sha256-63kUhKrxtJhwGCRBnxBfOFXs2ARCNn+OOGu6+fSJey4="; 24 dontNpmBuild = true; 25 postPatch = '' 26 cp ${patchedPackageJSON} ./package.json ··· 37 pname = "pyright-internal"; 38 inherit version src; 39 sourceRoot = "${src.name}/packages/pyright-internal"; 40 - npmDepsHash = "sha256-zITMHDiZTEbRy/1aqeCrnr9NaO1IUZ1enDw4LXjUjxs="; 41 dontNpmBuild = true; 42 installPhase = '' 43 runHook preInstall ··· 51 inherit version src; 52 53 sourceRoot = "${src.name}/packages/pyright"; 54 - npmDepsHash = "sha256-Ibeg9LgqUhxCgnNryk8ZYu4wNOmVbFHz8ZklNH6msoM="; 55 56 postPatch = '' 57 chmod +w ../../ ··· 65 passthru.updateScript = ./update.sh; 66 67 meta = { 68 - changelog = "https://github.com/Microsoft/pyright/releases/tag/${version}"; 69 description = "Type checker for the Python language"; 70 homepage = "https://github.com/Microsoft/pyright"; 71 license = lib.licenses.mit;
··· 1 + { 2 + lib, 3 + buildNpmPackage, 4 + fetchFromGitHub, 5 + runCommand, 6 + jq, 7 + }: 8 9 let 10 + version = "1.1.391"; 11 12 src = fetchFromGitHub { 13 owner = "Microsoft"; 14 repo = "pyright"; 15 + tag = version; 16 + hash = "sha256-QtdqMysK1vNqOFv2KQLlTGiCYwb1OWQ1jHITaiKv1hE="; 17 }; 18 19 patchedPackageJSON = runCommand "package.json" { } '' ··· 26 pyright-root = buildNpmPackage { 27 pname = "pyright-root"; 28 inherit version src; 29 + sourceRoot = "${src.name}"; # required for update.sh script 30 + npmDepsHash = "sha256-FqEh212Npa2Sye7qeKQJQukNc/nhNVCUp2HoypGGoOA="; 31 dontNpmBuild = true; 32 postPatch = '' 33 cp ${patchedPackageJSON} ./package.json ··· 44 pname = "pyright-internal"; 45 inherit version src; 46 sourceRoot = "${src.name}/packages/pyright-internal"; 47 + npmDepsHash = "sha256-E/zWZnDJd+4HnXYqW1ONoP7Gm+Tmn+8x3y3PIeS3Z3k="; 48 dontNpmBuild = true; 49 installPhase = '' 50 runHook preInstall ··· 58 inherit version src; 59 60 sourceRoot = "${src.name}/packages/pyright"; 61 + npmDepsHash = "sha256-1InoNbKMYNsaAAnlOMutnrwBjM1MroEvR5X9f5id/MA="; 62 63 postPatch = '' 64 chmod +w ../../ ··· 72 passthru.updateScript = ./update.sh; 73 74 meta = { 75 + changelog = "https://github.com/Microsoft/pyright/releases/tag/${src.tag}"; 76 description = "Type checker for the Python language"; 77 homepage = "https://github.com/Microsoft/pyright"; 78 license = lib.licenses.mit;
+14 -6
pkgs/by-name/py/pyright/update.sh
··· 1 #!/usr/bin/env nix-shell 2 - #!nix-shell -i bash -p curl gnused common-updater-scripts jq prefetch-npm-deps 3 set -euo pipefail 4 5 version=$(curl ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} -s https://api.github.com/repos/microsoft/pyright/releases/latest | jq -r '.tag_name | sub("^v"; "")') ··· 18 local source_root_path="$1" 19 local existing_hash="$2" 20 21 - # Formulate download URL 22 - local download_url="${REPO_URL_PREFIX}/${version}${source_root_path}/package-lock.json" 23 - 24 - # Download package-lock.json to temporary directory 25 - curl -fsSL -o "${TEMP_DIR}/package-lock.json" "$download_url" 26 27 # Calculate the new hash 28 local new_hash
··· 1 #!/usr/bin/env nix-shell 2 + #!nix-shell -i bash -p curl gnused common-updater-scripts jq prefetch-npm-deps nodejs 3 set -euo pipefail 4 5 version=$(curl ${GITHUB_TOKEN:+" -u \":$GITHUB_TOKEN\""} -s https://api.github.com/repos/microsoft/pyright/releases/latest | jq -r '.tag_name | sub("^v"; "")') ··· 18 local source_root_path="$1" 19 local existing_hash="$2" 20 21 + local package_url="${REPO_URL_PREFIX}/${version}${source_root_path}" 22 + if [ "$source_root_path" == "" ]; then 23 + pushd "${TEMP_DIR}" 24 + curl -fsSL "$package_url/package.json" | jq ' 25 + .devDependencies |= with_entries(select(.key == "glob" or .key == "jsonc-parser")) 26 + | .scripts = { } 27 + ' > package.json 28 + npm install --package-lock 29 + cp package-lock.json "$root/package-lock.json" 30 + popd 31 + else 32 + curl -fsSL -o "${TEMP_DIR}/package-lock.json" "$package_url/package-lock.json" 33 + fi 34 35 # Calculate the new hash 36 local new_hash