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