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