python3.pkgs.nbclient: always disable tests

Overriding a Python package in propagatedBuildInputs is a bad idea as
you may end up with multiple versions in your closure. This happened,
and when installing to $out the package for which the tests were run,
the site packages folder was empty.

Possible improvement is to add the tests as a separate derivation.

authored by Frederik Rietdijk and committed by Kerstin ab0bd3af e006a2a2

+2 -3
+1 -2
pkgs/development/python-modules/nbclient/default.nix
··· 1 1 { lib, buildPythonPackage, fetchPypi, pythonOlder, 2 2 async_generator, traitlets, nbformat, nest-asyncio, jupyter-client, 3 3 pytest, xmltodict, nbconvert, ipywidgets 4 - , doCheck ? true 5 4 }: 6 5 7 6 buildPythonPackage rec { ··· 14 13 sha256 = "sha256-QMUsm148MfrsruafICs/U+ONfBxWPeD63enX7aD9r+g="; 15 14 }; 16 15 17 - inherit doCheck; 16 + doCheck = false; # Avoid infinite recursion 18 17 checkInputs = [ pytest xmltodict nbconvert ipywidgets ]; 19 18 propagatedBuildInputs = [ async_generator traitlets nbformat nest-asyncio jupyter-client ]; 20 19
+1 -1
pkgs/development/python-modules/nbconvert/default.nix
··· 47 47 entrypoints bleach mistune jinja2 pygments traitlets testpath 48 48 jupyter_core nbformat ipykernel pandocfilters tornado jupyter-client 49 49 defusedxml beautifulsoup4 50 - (nbclient.override { doCheck = false; }) # avoid infinite recursion 50 + nbclient 51 51 jupyterlab-pygments 52 52 ]; 53 53