nixpkgs/pkgs/development/python-modules/nbval/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

80 lines
1.5 KiB
Nix
Raw Normal View History

2018-11-26 20:20:05 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, setuptools
2018-11-26 20:20:05 +00:00
, coverage
, ipykernel
, jupyter-client
2018-11-26 20:20:05 +00:00
, nbformat
, pytestCheckHook
2018-11-26 20:20:05 +00:00
, pytest
, glibcLocales
, matplotlib
, sympy
}:
buildPythonPackage rec {
pname = "nbval";
version = "0.11.0";
pyproject = true;
disabled = pythonOlder "3.7";
2018-11-26 20:20:05 +00:00
src = fetchPypi {
inherit pname version;
hash = "sha256-d8lXl2B7CpaLq9JZfuNJQQLSXDrTdDXeu9rA5G43kJQ=";
2018-11-26 20:20:05 +00:00
};
buildInputs = [
glibcLocales
];
2018-11-26 20:20:05 +00:00
build-system = [
setuptools
];
dependencies = [
coverage
ipykernel
jupyter-client
nbformat
pytest
];
2018-11-26 20:20:05 +00:00
nativeCheckInputs = [
pytestCheckHook
matplotlib
sympy
];
disabledTestPaths = [
"tests/test_ignore.py"
# These are the main tests but they're fragile so skip them. They error
# whenever matplotlib outputs any unexpected warnings, e.g. deprecation
# warnings.
"tests/test_unit_tests_in_notebooks.py"
# Impure
"tests/test_timeouts.py"
# No value for us
"tests/test_coverage.py"
# nbdime marked broken
"tests/test_nbdime_reporter.py"
];
2018-11-26 20:20:05 +00:00
2019-09-14 20:24:57 +00:00
# Some of the tests use localhost networking.
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [
"nbval"
];
2018-11-26 20:20:05 +00:00
meta = with lib; {
description = "A py.test plugin to validate Jupyter notebooks";
homepage = "https://github.com/computationalmodelling/nbval";
changelog = "https://github.com/computationalmodelling/nbval/releases/tag/${version}";
2018-11-26 20:20:05 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ ];
2018-11-26 20:20:05 +00:00
};
}