Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 873 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.1"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "3f18b87af4e94ccd073263dd58cd3eebabe9f5e4d6ab535b39d3af64811c7eda"; 23 }; 24 25 LC_ALL = "en_US.UTF-8"; 26 27 buildInputs = [ glibcLocales ]; 28 checkInputs = [ matplotlib sympy pytestcov ]; 29 propagatedBuildInputs = [ coverage ipykernel jupyter_client nbformat pytest six ]; 30 31 checkPhase = '' 32 pytest tests --current-env --ignore tests/test_timeouts.py 33 ''; 34 35 meta = with lib; { 36 description = "A py.test plugin to validate Jupyter notebooks"; 37 homepage = https://github.com/computationalmodelling/nbval; 38 license = licenses.bsd3; 39 maintainers = [ maintainers.costrouc ]; 40 }; 41}