Unverified Commit 28c44b64 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #269227 from natsukium/bqscales/fix

python311Packages.bqscales: fix build
parents 35d3f524 e9fda01c
Loading
Loading
Loading
Loading
+3 −16
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@
, hatchling
, hatch-jupyter-builder
, jupyterlab
, jupyter-packaging
, ipywidgets
, numpy
, traitlets
@@ -15,7 +14,7 @@
buildPythonPackage rec {
  pname = "bqscales";
  version = "0.3.3";
  format = "pyproject";
  pyproject = true;
  disabled = pythonOlder "3.6";

  src = fetchPypi {
@@ -23,24 +22,10 @@ buildPythonPackage rec {
    hash = "sha256-SlnNw4dWOzRedwIN3kCyl95qVqkY92QGOMS3Eyoqk0I=";
  };

  # 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 = [
    hatch-jupyter-builder
    hatchling
    jupyterlab
    jupyter-packaging
  ];

  propagatedBuildInputs = [
@@ -50,6 +35,8 @@ buildPythonPackage rec {
    traittypes
  ];

  env.SKIP_JUPYTER_BUILDER = 1;

  # no tests in PyPI dist
  doCheck = false;