Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4 5# build 6, hatchling 7 8# runtime 9, terminado 10 11# tests 12, pytest-jupyter 13, pytest-timeout 14, pytestCheckHook 15}: 16 17let self = buildPythonPackage rec { 18 pname = "jupyter-server-terminals"; 19 version = "0.4.4"; 20 format = "pyproject"; 21 22 src = fetchFromGitHub { 23 owner = "jupyter-server"; 24 repo = "jupyter_server_terminals"; 25 rev = "refs/tags/v${version}"; 26 hash = "sha256-F1lpg4ASw3ImvhC8XA8Ya4qpcbGY6fg8PYJt8sJj4cs="; 27 }; 28 29 nativeBuildInputs = [ 30 hatchling 31 ]; 32 33 propagatedBuildInputs = [ 34 terminado 35 ]; 36 37 doCheck = false; # infinite recursion 38 39 nativeCheckInputs = [ 40 pytest-jupyter 41 pytest-timeout 42 pytestCheckHook 43 ] ++ pytest-jupyter.optional-dependencies.server; 44 45 passthru.tests = { 46 check = self.overridePythonAttrs (_: { doCheck = true; }); 47 }; 48 49 meta = with lib; { 50 changelog = "https://github.com/jupyter-server/jupyter_server_terminals/releases/tag/v${version}"; 51 description = "A Jupyter Server Extension Providing Support for Terminals"; 52 homepage = "https://github.com/jupyter-server/jupyter_server_terminals"; 53 license = licenses.bsd3; 54 maintainers = with maintainers; [ ]; 55 }; 56}; 57in self