writers: add writeGuile[Bin] (#364531)
[NixPkgs.git] / pkgs / development / python-modules / jupyter-c-kernel / default.nix
blobba5b3ff85d4093cabda3af9a3c92c8110ce384ec
2   lib,
3   buildPythonPackage,
4   setuptools,
5   fetchPypi,
6   ipykernel,
7   gcc,
8 }:
10 buildPythonPackage rec {
11   pname = "jupyter-c-kernel";
12   version = "1.2.2";
13   pyproject = true;
15   src = fetchPypi {
16     pname = "jupyter_c_kernel";
17     inherit version;
18     sha256 = "e4b34235b42761cfc3ff08386675b2362e5a97fb926c135eee782661db08a140";
19   };
21   postPatch = ''
22     substituteInPlace jupyter_c_kernel/kernel.py \
23       --replace-fail "'gcc'" "'${gcc}/bin/gcc'"
24   '';
26   build-system = [ setuptools ];
28   dependencies = [ ipykernel ];
30   # no tests in repository
31   doCheck = false;
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   };