25 self = buildPythonPackage rec {
26 pname = "pytest-jupyter";
30 src = fetchFromGitHub {
31 owner = "jupyter-server";
32 repo = "pytest-jupyter";
33 rev = "refs/tags/v${version}";
34 hash = "sha256-RTpXBbVCRj0oyZ1TXXDv3M7sAI4kA6f3ouzTr0rXjwY=";
37 nativeBuildInputs = [ hatchling ];
39 buildInputs = [ pytest ];
41 propagatedBuildInputs = [ jupyter-core ];
43 optional-dependencies = {
57 doCheck = false; # infinite recursion with jupyter-server
62 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
65 check = self.overridePythonAttrs (_: {
71 changelog = "https://github.com/jupyter-server/pytest-jupyter/releases/tag/v${version}";
72 description = "pytest plugin for testing Jupyter core libraries and extensions";
73 homepage = "https://github.com/jupyter-server/pytest-jupyter";
74 license = licenses.bsd3;