python311Packages.ipyniivue: 1.1.0 -> 2.0.0

Changelog: https://github.com/niivue/ipyniivue/releases/tag/2.0.0
This commit is contained in:
natsukium 2024-04-19 10:40:52 +09:00
parent 8259f5485a
commit 04070e7a1f
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53
1 changed files with 8 additions and 13 deletions

View File

@ -4,37 +4,32 @@
, pythonOlder
, hatchling
, hatch-jupyter-builder
, ipywidgets
, jupyter-ui-poll
, anywidget
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "ipyniivue";
version = "1.1.0";
format = "pyproject";
version = "2.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-kym7949VI6C+62p3IOQ2QIzWnuSBcrmySb83oqUwhjI=";
hash = "sha256-CvMSUvPyXxPexs0/0sa/xt65RFWtvmYZwGSMIQGvLkc=";
};
# We do not need the jupyterlab build dependency, because we do not need to
# We do not need the build hooks, because we do not need to
# build any JS components; these are present already in the PyPI artifact.
#
postPatch = ''
substituteInPlace pyproject.toml \
--replace '"jupyterlab==3.*",' ""
'';
env.HATCH_BUILD_NO_HOOKS = true;
nativeBuildInputs = [
build-system = [
hatchling
hatch-jupyter-builder
];
propagatedBuildInputs = [ ipywidgets jupyter-ui-poll ];
dependencies = [ anywidget ];
nativeCheckImports = [ pytestCheckHook ];
pythonImportsCheck = [ "ipyniivue" ];