ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / spyder-kernels / default.nix
blobf39b03763c8185c8f9c238e0faf58ff3a9eb6cd5
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
15 buildPythonPackage rec {
16   pname = "spyder-kernels";
17   version = "2.4.0";
18   format = "setuptools";
20   disabled = pythonOlder "3.7";
22   src = fetchPypi {
23     inherit pname version;
24     hash = "sha256-O9MvvjChUKucztvVvrbd04veHZqHeNpS9+30ILv7jlE=";
25   };
27   propagatedBuildInputs = [
28     cloudpickle
29     ipykernel
30     ipython
31     jupyter-client
32     packaging
33     pyxdg
34     pyzmq
35     wurlitzer
36   ];
38   postPatch = ''
39     substituteInPlace setup.py \
40       --replace "ipykernel>=6.16.1,<7" "ipykernel" \
41       --replace "ipython>=7.31.1,<8" "ipython"
42   '';
44   # No tests
45   doCheck = false;
47   pythonImportsCheck = [
48     "spyder_kernels"
49   ];
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   };