mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 19:53:43 +00:00
Merge pull request #269227 from natsukium/bqscales/fix
python311Packages.bqscales: fix build
This commit is contained in:
commit
28c44b64c8
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user