about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/bqscales/default.nix
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-09-01 11:51:02 +0000
committerAlyssa Ross <hi@alyssa.is>2023-09-01 11:51:02 +0000
commitaa4353b499e6950b7333578f936455a628145c31 (patch)
treec6332cedece2327a18d08794755b3fc0f9f1905b /nixpkgs/pkgs/development/python-modules/bqscales/default.nix
parentac456d475f4e50818499b804359355c0f3b4bbf7 (diff)
parent52185f4d76c18d8348f963795dfed1de018e8dfe (diff)
downloadnixlib-aa4353b499e6950b7333578f936455a628145c31.tar
nixlib-aa4353b499e6950b7333578f936455a628145c31.tar.gz
nixlib-aa4353b499e6950b7333578f936455a628145c31.tar.bz2
nixlib-aa4353b499e6950b7333578f936455a628145c31.tar.lz
nixlib-aa4353b499e6950b7333578f936455a628145c31.tar.xz
nixlib-aa4353b499e6950b7333578f936455a628145c31.tar.zst
nixlib-aa4353b499e6950b7333578f936455a628145c31.zip
Merge https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/bqscales/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/bqscales/default.nix14
1 files changed, 13 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/bqscales/default.nix b/nixpkgs/pkgs/development/python-modules/bqscales/default.nix
index 3bd015a58f67..8b0ebb610ad9 100644
--- a/nixpkgs/pkgs/development/python-modules/bqscales/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/bqscales/default.nix
@@ -13,7 +13,6 @@
 buildPythonPackage rec {
   pname = "bqscales";
   version = "0.3.1";
-
   format = "pyproject";
   disabled = pythonOlder "3.6";
 
@@ -22,6 +21,19 @@ buildPythonPackage rec {
     hash = "sha256-C+/GLpqYpePngbn5W0MwvpdmVgFZF7aGHyKMgO5XM90=";
   };
 
+  # We relax dependencies here instead of pulling in a patch because upstream
+  # has released a new version using hatch-jupyter-builder, but it is not yet
+  # trivial to upgrade to that.
+  #
+  # Per https://github.com/bqplot/bqscales/issues/76, jupyterlab is not needed
+  # as a build dependency right now.
+  #
+  postPatch = ''
+    substituteInPlace pyproject.toml \
+      --replace '"jupyterlab==3.*",' "" \
+      --replace 'jupyter_packaging~=' 'jupyter_packaging>='
+  '';
+
   nativeBuildInputs = [
     hatchling
     jupyter-packaging