Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, cloudpickle 4, fetchPypi 5, ipykernel 6, ipython 7, jupyter-client 8, packaging 9, pythonOlder 10, pyxdg 11, pyzmq 12, wurlitzer 13}: 14 15buildPythonPackage rec { 16 pname = "spyder-kernels"; 17 version = "2.4.3"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-0aNkq4nacW2RZxup2J748ZZgaLug5HB5ekiWU4KcqvM="; 25 }; 26 27 propagatedBuildInputs = [ 28 cloudpickle 29 ipykernel 30 ipython 31 jupyter-client 32 packaging 33 pyxdg 34 pyzmq 35 wurlitzer 36 ]; 37 38 postPatch = '' 39 substituteInPlace setup.py \ 40 --replace "ipykernel>=6.16.1,<7" "ipykernel" \ 41 --replace "ipython>=7.31.1,<8" "ipython" 42 ''; 43 44 # No tests 45 doCheck = false; 46 47 pythonImportsCheck = [ 48 "spyder_kernels" 49 ]; 50 51 meta = with lib; { 52 description = "Jupyter kernels for Spyder's console"; 53 homepage = "https://docs.spyder-ide.org/current/ipythonconsole.html"; 54 downloadPage = "https://github.com/spyder-ide/spyder-kernels/releases"; 55 changelog = "https://github.com/spyder-ide/spyder-kernels/blob/master/CHANGELOG.md"; 56 license = licenses.mit; 57 maintainers = with maintainers; [ gebner ]; 58 }; 59}