From 04070e7a1f1c29d9120731c4b97fd4b7a7668621 Mon Sep 17 00:00:00 2001 From: natsukium Date: Fri, 19 Apr 2024 10:40:52 +0900 Subject: [PATCH] python311Packages.ipyniivue: 1.1.0 -> 2.0.0 Changelog: https://github.com/niivue/ipyniivue/releases/tag/2.0.0 --- .../python-modules/ipyniivue/default.nix | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/ipyniivue/default.nix b/pkgs/development/python-modules/ipyniivue/default.nix index 2f711f92a087..c097f2cb404e 100644 --- a/pkgs/development/python-modules/ipyniivue/default.nix +++ b/pkgs/development/python-modules/ipyniivue/default.nix @@ -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" ];