Skip to content

Commit c5c9572

Browse files
committed
python312Packages.pytest-notebook: modernize
1 parent 8cdd95d commit c5c9572

File tree

1 file changed

+17
-11
lines changed
  • pkgs/development/python-modules/pytest-notebook

1 file changed

+17
-11
lines changed

pkgs/development/python-modules/pytest-notebook/default.nix

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,28 @@
22
lib,
33
buildPythonPackage,
44
fetchFromGitHub,
5+
6+
# build-system
57
flit-core,
8+
9+
# dependencies
610
attrs,
711
jsonschema,
812
nbclient,
913
nbdime,
1014
nbformat,
15+
16+
# buildInputs
1117
pytest,
18+
19+
# tests
1220
black,
1321
coverage,
1422
ipykernel,
1523
pytest-cov-stub,
1624
pytest-regressions,
1725
pytestCheckHook,
26+
writableTmpDirAsHomeHook,
1827
}:
1928

2029
buildPythonPackage rec {
@@ -29,7 +38,7 @@ buildPythonPackage rec {
2938
hash = "sha256-LoK0wb7rAbVbgyURCbSfckWvJDef3tPY+7V4YU1IBRU=";
3039
};
3140

32-
nativeBuildInputs = [
41+
build-system = [
3342
flit-core
3443
];
3544

@@ -38,7 +47,7 @@ buildPythonPackage rec {
3847
"nbclient"
3948
];
4049

41-
propagatedBuildInputs = [
50+
dependencies = [
4251
attrs
4352
jsonschema
4453
nbclient
@@ -57,26 +66,23 @@ buildPythonPackage rec {
5766
pytest-cov-stub
5867
pytest-regressions
5968
pytestCheckHook
69+
writableTmpDirAsHomeHook
6070
];
6171

62-
preCheck = ''
63-
export HOME="$TEMP"
64-
'';
65-
6672
disabledTests = [
73+
# AssertionError: FILES DIFFER:
6774
"test_diff_to_string"
75+
76+
# pytest_notebook.execution.CoverageError: An error occurred while executing coverage start-up
77+
# TypeError: expected str, bytes or os.PathLike object, not NoneType
6878
"test_execute_notebook_with_coverage"
6979
"test_regression_coverage"
70-
"test_collection"
71-
"test_setup_with_skip_meta"
72-
"test_run_fail"
73-
"test_run_pass_with_meta"
7480
];
7581

7682
__darwinAllowLocalNetworking = true;
7783

7884
meta = {
79-
changelog = "https://github.com/chrisjsewell/pytest-notebook/blob/${src.rev}/docs/source/changelog.md";
85+
changelog = "https://github.com/chrisjsewell/pytest-notebook/blob/${src.tag}/docs/source/changelog.md";
8086
description = "Pytest plugin for regression testing and regenerating Jupyter Notebooks";
8187
homepage = "https://github.com/chrisjsewell/pytest-notebook";
8288
license = lib.licenses.bsd3;

0 commit comments

Comments
 (0)