Files

41 lines
794 B
Nix

{
lib,
buildPythonPackage,
setuptools,
fetchPypi,
ipykernel,
gcc,
}:
buildPythonPackage rec {
pname = "jupyter-c-kernel";
version = "1.2.2";
pyproject = true;
src = fetchPypi {
pname = "jupyter_c_kernel";
inherit version;
hash = "sha256-5LNCNbQnYc/D/wg4ZnWyNi5al/uSbBNe7ngmYdsIoUA=";
};
postPatch = ''
substituteInPlace jupyter_c_kernel/kernel.py \
--replace-fail "'gcc'" "'${gcc}/bin/gcc'"
'';
build-system = [ setuptools ];
dependencies = [ ipykernel ];
# no tests in repository
doCheck = false;
meta = {
description = "Minimalistic C kernel for Jupyter";
mainProgram = "install_c_kernel";
homepage = "https://github.com/brendanrius/jupyter-c-kernel/";
license = lib.licenses.mit;
maintainers = [ ];
};
}