3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/jupyterlab-git/default.nix

41 lines
916 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, pythonOlder
, notebook
, nbdime
, git
, pytest
}:
buildPythonPackage rec {
pname = "jupyterlab_git";
version = "0.23.2";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "2c4c55c5bc651a670b13e89064f7aba7422b72ad6b3f2b3890ac72cc9a2d4089";
};
propagatedBuildInputs = [ notebook nbdime git ];
# all Tests on darwin fail or are skipped due to sandbox
doCheck = !stdenv.isDarwin;
checkInputs = [ pytest ];
checkPhase = ''
pytest jupyterlab_git/ --ignore=jupyterlab_git/tests/test_handlers.py
'';
pythonImportsCheck = [ "jupyterlab_git" ];
meta = with stdenv.lib; {
description = "Jupyter lab extension for version control with Git.";
license = with licenses; [ bsd3 ];
homepage = "https://github.com/jupyterlab/jupyterlab-git";
maintainers = with maintainers; [ chiroptical ];
};
}