Loading pkgs/development/python-modules/jupyter-core/default.nix +12 −4 Original line number Diff line number Diff line Loading @@ -5,21 +5,22 @@ , hatchling , platformdirs , traitlets , pip , pytestCheckHook }: buildPythonPackage rec { pname = "jupyter-core"; version = "5.3.1"; version = "5.5.0"; disabled = pythonOlder "3.7"; format = "pyproject"; pyproject = true; src = fetchFromGitHub { owner = "jupyter"; repo = "jupyter_core"; rev = "refs/tags/v${version}"; hash = "sha256-kQ7oNEC5L19PTPaX6C2bP5FYuzlsFsS0TABsw6VvoL8="; hash = "sha256-GufCQUkR4283xMsyrbv5tDfJ8SeL35WBW5Aw2z6Ardc="; }; patches = [ Loading @@ -36,6 +37,7 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ pip pytestCheckHook ]; Loading @@ -43,6 +45,11 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; pytestFlagsArray = [ # suppress pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket fd=-1, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0> "-W ignore::pytest.PytestUnraisableExceptionWarning" ]; disabledTests = [ # creates a temporary script, which isn't aware of PYTHONPATH "test_argv0" Loading @@ -57,7 +64,8 @@ buildPythonPackage rec { 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; maintainers = with maintainers; [ fridh ]; maintainers = teams.jupyter.members; }; } pkgs/development/python-modules/jupyter-core/tests_respect_pythonpath.patch +6 −6 Original line number Diff line number Diff line diff --git a/jupyter_core/tests/test_command.py b/jupyter_core/tests/test_command.py index 4ef38cd..08fba22 100644 --- a/jupyter_core/tests/test_command.py +++ b/jupyter_core/tests/test_command.py @@ -174,7 +174,7 @@ def test_not_on_path(tmpdir): diff --git a/tests/test_command.py b/tests/test_command.py index a0833c1..67c2110 100644 --- a/tests/test_command.py +++ b/tests/test_command.py @@ -191,7 +191,7 @@ def test_not_on_path(tmpdir): witness_src = "#!{}\n{}\n".format(sys.executable, 'print("WITNESS ME")') write_executable(witness, witness_src) Loading @@ -11,7 +11,7 @@ index 4ef38cd..08fba22 100644 if "SYSTEMROOT" in os.environ: # Windows http://bugs.python.org/issue20614 env["SYSTEMROOT"] = os.environ["SYSTEMROOT"] if sys.platform == "win32": @@ -198,7 +198,7 @@ def test_path_priority(tmpdir): @@ -216,7 +216,7 @@ def test_path_priority(tmpdir): witness_b_src = "#!{}\n{}\n".format(sys.executable, 'print("WITNESS B")') write_executable(witness_b, witness_b_src) Loading Loading
pkgs/development/python-modules/jupyter-core/default.nix +12 −4 Original line number Diff line number Diff line Loading @@ -5,21 +5,22 @@ , hatchling , platformdirs , traitlets , pip , pytestCheckHook }: buildPythonPackage rec { pname = "jupyter-core"; version = "5.3.1"; version = "5.5.0"; disabled = pythonOlder "3.7"; format = "pyproject"; pyproject = true; src = fetchFromGitHub { owner = "jupyter"; repo = "jupyter_core"; rev = "refs/tags/v${version}"; hash = "sha256-kQ7oNEC5L19PTPaX6C2bP5FYuzlsFsS0TABsw6VvoL8="; hash = "sha256-GufCQUkR4283xMsyrbv5tDfJ8SeL35WBW5Aw2z6Ardc="; }; patches = [ Loading @@ -36,6 +37,7 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ pip pytestCheckHook ]; Loading @@ -43,6 +45,11 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; pytestFlagsArray = [ # suppress pytest.PytestUnraisableExceptionWarning: Exception ignored in: <socket.socket fd=-1, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0> "-W ignore::pytest.PytestUnraisableExceptionWarning" ]; disabledTests = [ # creates a temporary script, which isn't aware of PYTHONPATH "test_argv0" Loading @@ -57,7 +64,8 @@ buildPythonPackage rec { 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; maintainers = with maintainers; [ fridh ]; maintainers = teams.jupyter.members; }; }
pkgs/development/python-modules/jupyter-core/tests_respect_pythonpath.patch +6 −6 Original line number Diff line number Diff line diff --git a/jupyter_core/tests/test_command.py b/jupyter_core/tests/test_command.py index 4ef38cd..08fba22 100644 --- a/jupyter_core/tests/test_command.py +++ b/jupyter_core/tests/test_command.py @@ -174,7 +174,7 @@ def test_not_on_path(tmpdir): diff --git a/tests/test_command.py b/tests/test_command.py index a0833c1..67c2110 100644 --- a/tests/test_command.py +++ b/tests/test_command.py @@ -191,7 +191,7 @@ def test_not_on_path(tmpdir): witness_src = "#!{}\n{}\n".format(sys.executable, 'print("WITNESS ME")') write_executable(witness, witness_src) Loading @@ -11,7 +11,7 @@ index 4ef38cd..08fba22 100644 if "SYSTEMROOT" in os.environ: # Windows http://bugs.python.org/issue20614 env["SYSTEMROOT"] = os.environ["SYSTEMROOT"] if sys.platform == "win32": @@ -198,7 +198,7 @@ def test_path_priority(tmpdir): @@ -216,7 +216,7 @@ def test_path_priority(tmpdir): witness_b_src = "#!{}\n{}\n".format(sys.executable, 'print("WITNESS B")') write_executable(witness_b, witness_b_src) Loading