python311Packages.ipyniivue: 1.1.0 -> 2.0.0
Changelog: https://github.com/niivue/ipyniivue/releases/tag/2.0.0
This commit is contained in:
parent
8259f5485a
commit
04070e7a1f
|
@ -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" ];
|
||||
|
|
Loading…
Reference in New Issue