2020-08-20 17:08:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, ipykernel
|
|
|
|
, gcc
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter-c-kernel";
|
|
|
|
version = "1.2.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
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;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = [ ];
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|