Merge pull request #229346 from bcdarwin/python3-ipyniivue
python310Packages.ipyniivue: init at 1.0.2
This commit is contained in:
commit
31c4143405
3 changed files with 80 additions and 0 deletions
38
pkgs/development/python-modules/ipyniivue/default.nix
Normal file
38
pkgs/development/python-modules/ipyniivue/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ 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
pkgs/development/python-modules/jupyter-ui-poll/default.nix
Normal file
38
pkgs/development/python-modules/jupyter-ui-poll/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue