c5ce5db644
GitOrigin-RevId: 84917aa00bf23c88e5874c683abe05edb0ba4078
40 lines
916 B
Nix
40 lines
916 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, notebook
|
|
, nbdime
|
|
, git
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyterlab_git";
|
|
version = "0.23.3";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "20a4954d8d1b1eb6f9111cd15d6a598bd7ff72b08797cf5e86c5a55827c85a1d";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|