From 087521666bdfac44abbb00bae6bbb26ed3ef1807 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 21 Jan 2026 18:32:13 +0100 Subject: [PATCH] python3Packages.bqscales: 0.3.3 -> 0.3.7 This commit was automatically generated using update-python-libraries. --- .../python-modules/bqscales/default.nix | 51 ++++++++++++++++--- .../bqscales/missing-hashes.json | 3 ++ 2 files changed, 46 insertions(+), 8 deletions(-) create mode 100644 pkgs/development/python-modules/bqscales/missing-hashes.json diff --git a/pkgs/development/python-modules/bqscales/default.nix b/pkgs/development/python-modules/bqscales/default.nix index a012e36ddf06..cec0e68a5845 100644 --- a/pkgs/development/python-modules/bqscales/default.nix +++ b/pkgs/development/python-modules/bqscales/default.nix @@ -1,33 +1,68 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, + + # frontend + nodejs, + yarn-berry_3, + + # build-system hatchling, + hatch-build-scripts, hatch-jupyter-builder, + hatch-nodejs-version, jupyterlab, + + # dependencies ipywidgets, numpy, traitlets, traittypes, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "bqscales"; - version = "0.3.3"; + version = "0.3.7"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-SlnNw4dWOzRedwIN3kCyl95qVqkY92QGOMS3Eyoqk0I="; + src = fetchFromGitHub { + owner = "bqplot"; + repo = "bqscales"; + tag = finalAttrs.version; + hash = "sha256-AAKnOEwdycSlxJEK0qbFJp2Dpiw/rEIk7fUa3NTymqQ="; + }; + + postPatch = '' + sed -i "/\"hatch\"/d" pyproject.toml + ''; + + missingHashes = ./missing-hashes.json; + + yarnOfflineCache = yarn-berry_3.fetchYarnBerryDeps { + inherit (finalAttrs) src missingHashes; + hash = "sha256-4Y5dRFwOyfHOzrdw2/epK3mN/+xrz+ccG86KP9axxjI="; }; nativeBuildInputs = [ + nodejs + yarn-berry_3.yarnBerryConfigHook + yarn-berry_3 + ]; + + preBuild = '' + npm run build + ''; + + build-system = [ + hatch-build-scripts hatch-jupyter-builder + hatch-nodejs-version hatchling jupyterlab ]; - propagatedBuildInputs = [ + dependencies = [ ipywidgets numpy traitlets @@ -47,4 +82,4 @@ buildPythonPackage rec { license = lib.licenses.asl20; maintainers = with lib.maintainers; [ bcdarwin ]; }; -} +}) diff --git a/pkgs/development/python-modules/bqscales/missing-hashes.json b/pkgs/development/python-modules/bqscales/missing-hashes.json new file mode 100644 index 000000000000..43c071c5f5d2 --- /dev/null +++ b/pkgs/development/python-modules/bqscales/missing-hashes.json @@ -0,0 +1,3 @@ +{ + "@rollup/rollup-linux-x64-gnu@npm:4.9.5": "234c780999740b15999190d33d5994b28c880169a08ab5b82bb8dbc65f24d61329193e9f3817ed499f8486346336b8f256b32e020cbf4d81747d81cd490f6498" +}