Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 89 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies ipykernel, ipython, jupyter-client, jupyter-core, prompt-toolkit, pygments, pyzmq, traitlets,
# tests flaky, pexpect, pytestCheckHook,}:
buildPythonPackage rec { pname = "jupyter-console"; version = "6.6.3"; pyproject = true;
src = fetchFromGitHub { owner = "jupyter"; repo = "jupyter_console"; tag = "v${version}"; hash = "sha256-jdSeZCspcjEQVBpJyxVnwJ5SAq+SS1bW9kqp/F/zwCQ="; };
postPatch = # Use wrapped executable in tests let binPath = "${placeholder "out"}/bin/jupyter-console"; in '' substituteInPlace jupyter_console/tests/test_console.py \ --replace-fail "'-m', 'jupyter_console', " "" \ --replace-fail "sys.executable" "'${binPath}'" '';
build-system = [ hatchling ];
dependencies = [ ipykernel ipython jupyter-client jupyter-core prompt-toolkit pygments pyzmq traitlets ];
pythonImportsCheck = [ "jupyter_console" ];
nativeCheckInputs = [ flaky pexpect pytestCheckHook ];
preCheck = '' export HOME=$TMPDIR '';
disabledTests = [ # Flaky: pexpect.exceptions.TIMEOUT: Timeout exceeded "test_console_starts" "test_display_text" ];
__darwinAllowLocalNetworking = true;
meta = { description = "Jupyter terminal console"; mainProgram = "jupyter-console"; homepage = "https://github.com/jupyter/jupyter_console"; changelog = "https://github.com/jupyter/jupyter_console/releases/tag/v${version}"; license = lib.licenses.bsd3; teams = [ lib.teams.jupyter ]; };}