3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/nbval/default.nix
2019-12-30 16:46:44 +01:00

58 lines
997 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, coverage
, ipykernel
, jupyter_client
, nbformat
, pytest
, six
, glibcLocales
, matplotlib
, sympy
, pytestcov
}:
buildPythonPackage rec {
pname = "nbval";
version = "0.9.4";
src = fetchPypi {
inherit pname version;
sha256 = "5273c2d958335e24b170fe59b689b13e4b1855b569626e18b1c7e420f5110cc6";
};
checkInputs = [
pytest
matplotlib
sympy
pytestcov
];
buildInputs = [ glibcLocales ];
propagatedBuildInputs = [
coverage
ipykernel
jupyter_client
nbformat
pytest
six
];
# ignore impure tests
checkPhase = ''
pytest tests --ignore tests/test_timeouts.py
'';
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "A py.test plugin to validate Jupyter notebooks";
homepage = https://github.com/computationalmodelling/nbval;
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}