python3Packages.jupyter-c-kernel: init at 1.2.2
This commit is contained in:
parent
2147589c7a
commit
eacff247fd
34
pkgs/development/python-modules/jupyter-c-kernel/default.nix
Normal file
34
pkgs/development/python-modules/jupyter-c-kernel/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, ipykernel
|
||||||
|
, gcc
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "jupyter-c-kernel";
|
||||||
|
version = "1.2.2";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
pname = "jupyter_c_kernel";
|
||||||
|
inherit version;
|
||||||
|
sha256 = "e4b34235b42761cfc3ff08386675b2362e5a97fb926c135eee782661db08a140";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace jupyter_c_kernel/kernel.py \
|
||||||
|
--replace "'gcc'" "'${gcc}/bin/gcc'"
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ ipykernel ];
|
||||||
|
|
||||||
|
# no tests in repository
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Minimalistic C kernel for Jupyter";
|
||||||
|
homepage = "https://github.com/brendanrius/jupyter-c-kernel/";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ maintainers.costrouc ];
|
||||||
|
};
|
||||||
|
}
|
@ -3299,6 +3299,8 @@ in {
|
|||||||
|
|
||||||
jupyter = callPackage ../development/python-modules/jupyter { };
|
jupyter = callPackage ../development/python-modules/jupyter { };
|
||||||
|
|
||||||
|
jupyter-c-kernel = callPackage ../development/python-modules/jupyter-c-kernel { };
|
||||||
|
|
||||||
jupyter_console = if pythonOlder "3.5" then
|
jupyter_console = if pythonOlder "3.5" then
|
||||||
callPackage ../development/python-modules/jupyter_console/5.nix { }
|
callPackage ../development/python-modules/jupyter_console/5.nix { }
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user