Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 57 lines 997 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.4"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "5273c2d958335e24b170fe59b689b13e4b1855b569626e18b1c7e420f5110cc6"; 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 # Some of the tests use localhost networking. 49 __darwinAllowLocalNetworking = true; 50 51 meta = with lib; { 52 description = "A py.test plugin to validate Jupyter notebooks"; 53 homepage = https://github.com/computationalmodelling/nbval; 54 license = licenses.bsd3; 55 maintainers = [ maintainers.costrouc ]; 56 }; 57}