33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
|
|
# build
|
|
, hatchling
|
|
|
|
# runtime
|
|
, terminado
|
|
|
|
# tests
|
|
, pytest-jupyter
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
let self = buildPythonPackage rec {
|
|
pname = "jupyter-server-terminals";
|
|
version = "0.4.3";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jupyter-server";
|
|
repo = "jupyter_server_terminals";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-swFMuKP/JIHJJ0zr3Dqv71Ne4WaP7GbzeNQ2tzEBpRU=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
terminado
|
|
];
|
|
|
|
doCheck = false; # infinite recursion
|
|
|
|
nativeCheckInputs = [
|
|
pytest-jupyter
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
] ++ pytest-jupyter.optional-dependencies.server;
|
|
|
|
passthru.tests = {
|
|
check = self.overridePythonAttrs (_: { doCheck = true; });
|
|
};
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/jupyter-server/jupyter_server_terminals/releases/tag/v${version}";
|
|
description = "A Jupyter Server Extension Providing Support for Terminals";
|
|
homepage = "https://github.com/jupyter-server/jupyter_server_terminals";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
};
|
|
in self
|