python3Packages.pytest-jupyter: init at 0.6.2
This commit is contained in:
parent
6bf557fc68
commit
d97e53aeb0
77
pkgs/development/python-modules/pytest-jupyter/default.nix
Normal file
77
pkgs/development/python-modules/pytest-jupyter/default.nix
Normal file
|
@ -0,0 +1,77 @@
|
|||
{ 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.6.2";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jupyter-server";
|
||||
repo = "pytest-jupyter";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-kY4QHrlj0opEBywe4SpwE4Ck6l6JIzEosx6uuXh+yCQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pytest
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
jupyter-core
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = rec {
|
||||
client = [
|
||||
jupyter-client
|
||||
ipykernel
|
||||
];
|
||||
server = [
|
||||
jupyter_server
|
||||
nbformat
|
||||
] ++ client;
|
||||
};
|
||||
|
||||
doCheck = false; # infinite recursion with jupyter-server
|
||||
|
||||
checkInputs = [
|
||||
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
|
|
@ -8935,6 +8935,8 @@ self: super: with self; {
|
|||
|
||||
pytest-json-report = callPackage ../development/python-modules/pytest-json-report { };
|
||||
|
||||
pytest-jupyter = callPackage ../development/python-modules/pytest-jupyter { };
|
||||
|
||||
pytest-lazy-fixture = callPackage ../development/python-modules/pytest-lazy-fixture { };
|
||||
|
||||
pytest-localserver = callPackage ../development/python-modules/pytest-localserver { };
|
||||
|
|
Loading…
Reference in a new issue