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