Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 75 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, hatchling, platformdirs, traitlets, pip, pytestCheckHook,
# Reverse dependency sage,}:
buildPythonPackage rec { pname = "jupyter-core"; version = "5.8.1"; disabled = pythonOlder "3.7";
pyproject = true;
src = fetchFromGitHub { owner = "jupyter"; repo = "jupyter_core"; tag = "v${version}"; hash = "sha256-opTFYVDqzkjeFC+9IZXPRCoV2QCTm1ze6ldrOZN0aUc="; };
patches = [ ./tests_respect_pythonpath.patch ];
nativeBuildInputs = [ hatchling ];
propagatedBuildInputs = [ platformdirs traitlets ];
nativeCheckInputs = [ pip pytestCheckHook ];
preCheck = '' export HOME=$TMPDIR '';
pytestFlags = [ # suppress pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket fd=-1, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0> "-Wignore::pytest.PytestUnraisableExceptionWarning" ];
disabledTests = [ # creates a temporary script, which isn't aware of PYTHONPATH "test_argv0" ];
postCheck = '' $out/bin/jupyter --help > /dev/null '';
pythonImportsCheck = [ "jupyter_core" ];
passthru.tests = { inherit sage; };
meta = with lib; { description = "Base package on which Jupyter projects rely"; homepage = "https://jupyter.org/"; changelog = "https://github.com/jupyter/jupyter_core/blob/${src.rev}/CHANGELOG.md"; license = licenses.bsd3; teams = [ teams.jupyter ]; };}