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