Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 54 lines 897 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, coverage 5, ipykernel 6, jupyter_client 7, nbformat 8, pytest 9, six 10, glibcLocales 11, matplotlib 12, sympy 13, pytestcov 14}: 15 16buildPythonPackage rec { 17 pname = "nbval"; 18 version = "0.9.2"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "0g8xl4158ngyhiynrkk72jpawnk4isznbijz0w085g269fps0vp2"; 23 }; 24 25 checkInputs = [ 26 pytest 27 matplotlib 28 sympy 29 pytestcov 30 ]; 31 32 buildInputs = [ glibcLocales ]; 33 34 propagatedBuildInputs = [ 35 coverage 36 ipykernel 37 jupyter_client 38 nbformat 39 pytest 40 six 41 ]; 42 43 # ignore impure tests 44 checkPhase = '' 45 pytest tests --ignore tests/test_timeouts.py 46 ''; 47 48 meta = with lib; { 49 description = "A py.test plugin to validate Jupyter notebooks"; 50 homepage = https://github.com/computationalmodelling/nbval; 51 license = licenses.bsd3; 52 maintainers = [ maintainers.costrouc ]; 53 }; 54}