depot/third_party/nixpkgs/pkgs/development/python-modules/jupyter-c-kernel/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
776 B
Nix

{
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 = [ ];
};
}