1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, nbformat 6, nbclient 7, ipykernel 8, pandas 9, pytestCheckHook 10, traitlets 11}: 12 13buildPythonPackage rec { 14 pname = "testbook"; 15 version = "0.4.2"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "nteract"; 22 repo = pname; 23 rev = version; 24 hash = "sha256-qaDgae/5TRpjmjOf7aom7TC5HLHp0PHM/ds47AKtq8U="; 25 }; 26 27 propagatedBuildInputs = [ 28 nbclient 29 nbformat 30 ]; 31 32 nativeCheckInputs = [ 33 ipykernel 34 pandas 35 pytestCheckHook 36 traitlets 37 ]; 38 39 pythonImportsCheck = [ 40 "testbook" 41 ]; 42 43 meta = with lib; { 44 description = "A unit testing framework extension for testing code in Jupyter Notebooks"; 45 homepage = "https://testbook.readthedocs.io/"; 46 license = with licenses; [ bsd3 ]; 47 maintainers = with maintainers; [ djacu ]; 48 }; 49}