Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pytest-notebook / default.nix
blob104c334539717f60cb84745b8ccb3295555d8c7d
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , flit-core
5 , pythonRelaxDepsHook
6 , attrs
7 , jsonschema
8 , nbclient
9 , nbdime
10 , nbformat
11 , pytest
12 , black
13 , coverage
14 , ipykernel
15 , pytest-cov
16 , pytest-regressions
17 , pytestCheckHook
20 buildPythonPackage rec {
21   pname = "pytest-notebook";
22   version = "0.10.0";
23   pyproject = true;
25   src = fetchFromGitHub {
26     owner = "chrisjsewell";
27     repo = "pytest-notebook";
28     rev = "refs/tags/v${version}";
29     hash = "sha256-LoK0wb7rAbVbgyURCbSfckWvJDef3tPY+7V4YU1IBRU=";
30   };
32   nativeBuildInputs = [
33     flit-core
34     pythonRelaxDepsHook
35   ];
37   pythonRelaxDeps = [
38     "attrs"
39     "nbclient"
40   ];
42   propagatedBuildInputs = [
43     attrs
44     jsonschema
45     nbclient
46     nbdime
47     nbformat
48   ];
50   buildInputs = [
51     pytest
52   ];
54   pythonImportsCheck = [ "pytest_notebook" ];
56   nativeCheckInputs = [
57     black
58     coverage
59     ipykernel
60     pytest-cov
61     pytest-regressions
62     pytestCheckHook
63   ];
65   preCheck = ''
66     export HOME="$TEMP"
67   '';
69   disabledTests = [
70     "test_diff_to_string"
71     "test_execute_notebook_with_coverage"
72     "test_regression_coverage"
73     "test_collection"
74     "test_setup_with_skip_meta"
75     "test_run_fail"
76     "test_run_pass_with_meta"
77   ];
79   meta = {
80     changelog = "https://github.com/chrisjsewell/pytest-notebook/blob/${src.rev}/docs/source/changelog.md";
81     description = "Pytest plugin for regression testing and regenerating Jupyter Notebooks";
82     homepage = "https://github.com/chrisjsewell/pytest-notebook";
83     license = lib.licenses.bsd3;
84     maintainers = with lib.maintainers; [ dotlambda ];
85   };