38 lines
816 B
Nix
38 lines
816 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, notebook
|
|
, nbdime
|
|
, git
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyterlab_git";
|
|
version = "0.22.2";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "9966a569428e67cc1688fbc2e05f51b0ceeefd8dfe30737e78a501ce3105103d";
|
|
};
|
|
|
|
propagatedBuildInputs = [ notebook nbdime git ];
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
checkPhase = ''
|
|
pytest jupyterlab_git/ --ignore=jupyterlab_git/tests/test_handlers.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "jupyterlab_git" ];
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|