Unverified Commit 31c41434 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #229346 from bcdarwin/python3-ipyniivue

python310Packages.ipyniivue: init at 1.0.2
parents 88a595ef 0fd3f232
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, hatchling
, hatch-jupyter-builder
, ipywidgets
, jupyter-ui-poll
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "ipyniivue";
  version = "1.0.2";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-vFbEV/ZMXvKZeQUR536OZQ/5uIkt4tOWcCGRPMdc34I";
  };

  nativeBuildInputs = [ hatchling hatch-jupyter-builder ];

  propagatedBuildInputs = [ ipywidgets jupyter-ui-poll ];

  nativeCheckImports = [ pytestCheckHook ];
  pythonImportsCheck = [ "ipyniivue" ];

  meta = with lib; {
    description = "Show a nifti image in a webgl 2.0 canvas within a jupyter notebook cell";
    homepage = "https://github.com/niivue/ipyniivue";
    changelog = "https://github.com/niivue/ipyniivue/releases/tag/${version}";
    license = licenses.bsd3;
    maintainers = with maintainers; [ bcdarwin ];
  };
}
+38 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, ipython
}:

buildPythonPackage rec {
  pname = "jupyter-ui-poll";
  version = "0.2.2";
  format = "pyproject";

  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "Kirill888";
    repo = "jupyter-ui-poll";
    rev = "refs/tags/v${version}";
    hash = "sha256-DWZFvzx0aNTmf1x8Rq19OT0PFRxdpKefWYFh8C116Fw";
  };

  nativeBuildInputs = [ setuptools ];
  propagatedBuildInputs = [
    ipython
  ];

  doCheck = false;  # no tests in package :(
  pythonImportsCheck = [ "jupyter_ui_poll" ];

  meta = with lib; {
    description = "Block jupyter cell execution while interacting with widgets";
    homepage = "https://github.com/Kirill888/jupyter-ui-poll";
    changelog = "https://github.com/Kirill888/jupyter-ui-poll/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ bcdarwin ];
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -4883,6 +4883,8 @@ self: super: with self; {

  ipydatawidgets = callPackage ../development/python-modules/ipydatawidgets { };

  ipyniivue = callPackage ../development/python-modules/ipyniivue { };

  ipykernel = callPackage ../development/python-modules/ipykernel { };

  ipympl = callPackage ../development/python-modules/ipympl { };
@@ -5195,6 +5197,8 @@ self: super: with self; {

  jupyter-server-ydoc = callPackage ../development/python-modules/jupyter-server-ydoc { };

  jupyter-ui-poll = callPackage ../development/python-modules/jupyter-ui-poll { };

  jupyter-ydoc = callPackage ../development/python-modules/jupyter-ydoc { };

  jupyterhub = callPackage ../development/python-modules/jupyterhub { };