2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
fetchPypi,
|
|
|
|
ipykernel,
|
|
|
|
gcc,
|
2020-08-20 17:08:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter-c-kernel";
|
|
|
|
version = "1.2.2";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
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 \
|
2024-09-19 14:19:46 +00:00
|
|
|
--replace-fail "'gcc'" "'${gcc}/bin/gcc'"
|
2020-08-20 17:08:02 +00:00
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ ipykernel ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
# no tests in repository
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Minimalistic C kernel for Jupyter";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "install_c_kernel";
|
2020-08-20 17:08:02 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|