1{
2 lib,
3 buildPythonPackage,
4 setuptools,
5 fetchPypi,
6 ipykernel,
7 gcc,
8}:
9
10buildPythonPackage rec {
11 pname = "jupyter-c-kernel";
12 version = "1.2.2";
13 pyproject = true;
14
15 src = fetchPypi {
16 pname = "jupyter_c_kernel";
17 inherit version;
18 sha256 = "e4b34235b42761cfc3ff08386675b2362e5a97fb926c135eee782661db08a140";
19 };
20
21 postPatch = ''
22 substituteInPlace jupyter_c_kernel/kernel.py \
23 --replace-fail "'gcc'" "'${gcc}/bin/gcc'"
24 '';
25
26 build-system = [ setuptools ];
27
28 dependencies = [ ipykernel ];
29
30 # no tests in repository
31 doCheck = false;
32
33 meta = with lib; {
34 description = "Minimalistic C kernel for Jupyter";
35 mainProgram = "install_c_kernel";
36 homepage = "https://github.com/brendanrius/jupyter-c-kernel/";
37 license = licenses.mit;
38 maintainers = [ ];
39 };
40}