blob: 63771bf4cf3c1197ec4177fa7a8fd1528e754608 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
{ lib
, buildPythonPackage
, fetchFromGitHub
# build
, hatchling
, pytest
# runtime
, jupyter-core
# optionals
, jupyter-client
, ipykernel
, jupyter-server
, nbformat
# tests
, pytest-timeout
, pytestCheckHook
}:
let self = buildPythonPackage rec {
pname = "pytest-jupyter";
version = "0.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jupyter-server";
repo = "pytest-jupyter";
rev = "refs/tags/v${version}";
hash = "sha256-ND51UpPsvZGH6LdEaNFXaBLoCMB4n7caPoo1/Go9fNs=";
};
nativeBuildInputs = [
hatchling
];
buildInputs = [
pytest
];
propagatedBuildInputs = [
jupyter-core
];
passthru.optional-dependencies = {
client = [
jupyter-client
nbformat
ipykernel
];
server = [
jupyter-server
jupyter-client
nbformat
ipykernel
];
};
doCheck = false; # infinite recursion with jupyter-server
nativeCheckInputs = [
pytest-timeout
pytestCheckHook
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
passthru.tests = {
check = self.overridePythonAttrs (_: { doCheck = false; });
};
meta = with lib; {
changelog = "https://github.com/jupyter-server/pytest-jupyter/releases/tag/v${version}";
description = "pytest plugin for testing Jupyter core libraries and extensions";
homepage = "https://github.com/jupyter-server/pytest-jupyter";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
};
in self
|