Merge pull request #269227 from natsukium/bqscales/fix

python311Packages.bqscales: fix build
This commit is contained in:
OTABI Tomoya 2023-11-23 11:42:48 +09:00 committed by GitHub
commit 28c44b64c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;