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, pythonOlder, fetchPypi, hatch-jupyter-builder, hatchling, jupyterlab, nbformat, colorama, pygments, tornado, requests, gitpython, jupyter-server, jupyter-server-mathjax, jinja2, git, pytest-tornado, pytestCheckHook,}:
buildPythonPackage rec { pname = "nbdime"; version = "4.0.1"; pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi { inherit pname version; hash = "sha256-8adgwLAMG6m0lFwWzpJXfzk/tR0YTzUbdoW6boUCCY4="; };
patches = [ # this fixes the webserver (nbdiff-web) when jupyter-server >=2.13 is used # see https://github.com/jupyter/nbdime/issues/749 ./749.patch ];
nativeBuildInputs = [ hatch-jupyter-builder hatchling jupyterlab ];
propagatedBuildInputs = [ nbformat colorama pygments tornado requests gitpython jupyter-server jupyter-server-mathjax jinja2 ];
nativeCheckInputs = [ git pytest-tornado pytestCheckHook ];
disabledTests = [ "test_git_diffdriver" "test_git_difftool" "test_git_mergedriver" "test_git_mergetool" ];
preCheck = '' export HOME="$TEMP" git config --global user.email "janedoe@example.com" git config --global user.name "Jane Doe" '';
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "nbdime" ];
meta = with lib; { homepage = "https://github.com/jupyter/nbdime"; changelog = "https://github.com/jupyter/nbdime/blob/${version}/CHANGELOG.md"; description = "Tools for diffing and merging of Jupyter notebooks"; license = licenses.bsd3; maintainers = with maintainers; [ tbenst ]; };}