about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jupyter-c-kernel/default.nix
blob: c15d8dff3f6f7f533f7be5371ab57db5cc6bdada (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchPypi
, ipykernel
, gcc
}:

buildPythonPackage rec {
  pname = "jupyter-c-kernel";
  version = "1.2.2";
  format = "setuptools";

  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";
    mainProgram = "install_c_kernel";
    homepage = "https://github.com/brendanrius/jupyter-c-kernel/";
    license = licenses.mit;
    maintainers = [ ];
  };
}