tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python312Packages.notebook: build from source
natsukium
10 months ago
6de1a44b
84251ef4
+32
-4
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
notebook
default.nix
missing-hashes.json
+20
-4
pkgs/development/python-modules/notebook/default.nix
···
1
{
2
lib,
3
buildPythonPackage,
4
-
fetchPypi,
0
0
5
hatch-jupyter-builder,
6
hatchling,
7
jupyter-server,
···
18
version = "7.4.1";
19
pyproject = true;
20
21
-
src = fetchPypi {
22
-
inherit pname version;
23
-
hash = "sha256-lolJYrIwAT6gwKRm5OZCxarOJbqMhmhhdbaZkO9ij/k=";
0
0
24
};
25
26
postPatch = ''
27
substituteInPlace pyproject.toml \
28
--replace "timeout = 300" ""
29
'';
0
0
0
0
0
0
0
0
0
0
0
0
30
31
build-system = [
32
hatch-jupyter-builder
···
1
{
2
lib,
3
buildPythonPackage,
4
+
fetchFromGitHub,
5
+
nodejs,
6
+
yarn-berry_3,
7
hatch-jupyter-builder,
8
hatchling,
9
jupyter-server,
···
20
version = "7.4.1";
21
pyproject = true;
22
23
+
src = fetchFromGitHub {
24
+
owner = "jupyter";
25
+
repo = "notebook";
26
+
tag = "v${version}";
27
+
hash = "sha256-Xz9EZgYNJjWsN7tcTmwXLwH9VW7GnI0P/oNT0IFpkoE=";
28
};
29
30
postPatch = ''
31
substituteInPlace pyproject.toml \
32
--replace "timeout = 300" ""
33
'';
34
+
35
+
nativeBuildInputs = [
36
+
nodejs
37
+
yarn-berry_3.yarnBerryConfigHook
38
+
];
39
+
40
+
missingHashes = ./missing-hashes.json;
41
+
42
+
offlineCache = yarn-berry_3.fetchYarnBerryDeps {
43
+
inherit src missingHashes;
44
+
hash = "sha256-IFLAwEFsI/GL26XAfiLDyW1mG72gcN2TH651x8Nbrtw=";
45
+
};
46
47
build-system = [
48
hatch-jupyter-builder
+12
pkgs/development/python-modules/notebook/missing-hashes.json
···
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{
2
+
"@nx/nx-darwin-arm64@npm:16.10.0": "aabcc8499602b98c9fc3b768fe46dfd4e1b818caa84b740bd4f73a2e4528c719b979ecb1c10a0d793a1fead83073a08bc86417588046aa3e587e80af880bffd3",
3
+
"@nx/nx-darwin-x64@npm:16.10.0": "9dd20f45f646d05306f23f5abb7ade69dcb962e23a013101e93365847722079656d30a19c735fdcfa5c4e0fdf08691f9d621073c58aef2861c26741ff4638375",
4
+
"@nx/nx-freebsd-x64@npm:16.10.0": "35b93aabe3b3274d53157a6fc10fec7e341e75e6818e96cfbc89c3d5b955d225ca80a173630b6aa43c448c6b53b23f06a2699a25c0c8bc71396ee20a023d035f",
5
+
"@nx/nx-linux-arm-gnueabihf@npm:16.10.0": "697b9fa4c70f84d3ea8fe32d47635864f2e40b0ceeb1484126598c61851a2ec34b56bb3eeb9654c37d9b14e81ce85a36ac38946b4b90ca403c57fe448be51ccb",
6
+
"@nx/nx-linux-arm64-gnu@npm:16.10.0": "001e71fedfc763a4dedd6c5901b66a4a790d388673fb74675235e19bb8fe031ff3755568ed867513dd003f873901fabda31a7d5628b39095535cb9f6d1dc7191",
7
+
"@nx/nx-linux-arm64-musl@npm:16.10.0": "58e3b71571bdadd2b0ddd24ea6e30cd795e706ada69f685403412c518fba1a2011ac8c2ac46145eab14649aa5a78e0cedcdb4d327ccb3b6ec12e055171f3840b",
8
+
"@nx/nx-linux-x64-gnu@npm:16.10.0": "97729a7efb27301a67ebf34739784114528ddb54047e63ca110a985eaa0763c5b1ea7c623ead1a2266d07107951be81e82ffa0a30e6e4d97506659303f2c8c78",
9
+
"@nx/nx-linux-x64-musl@npm:16.10.0": "442bdbd5e61324a850e4e7bd6f54204108580299d3c7c4ebcec324da9a63e23f48d797a87593400fc32af78a3a03a3c104bfb360f107fe732e6a6c289863853a",
10
+
"@nx/nx-win32-arm64-msvc@npm:16.10.0": "b5c74184ebfc70294e85f8e309f81c3d40b5cf99068891e613f3bef5ddb946bef7c9942d9e6c7688e22006d45d786342359af3b4fc87aadf369afcda55c73187",
11
+
"@nx/nx-win32-x64-msvc@npm:16.10.0": "c5b174ebd7a5916246088e17d3761804b88f010b6b3f930034fa49af00da33b6d1352728c733024f736e4c2287def75bafdc3d60d8738bd24b67e9a4f11763f8"
12
+
}