@@ -0,0 +1,37 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pythonOlder
5+, notebook
6+, nbdime
7+, git
8+, pytest
9+}:
10+
11+buildPythonPackage rec {
12+ pname = "jupyterlab_git";
13+ version = "0.20.0";
14+ disabled = pythonOlder "3.5";
15+
16+ src = fetchPypi {
17+ inherit pname version;
18+ sha256 = "0qs3wrcils07xlz698xr7giqf9v63n2qb338mlh7wql93rmjg45i";
19+ };
20+
21+ propagatedBuildInputs = [ notebook nbdime git ];
22+
23+ checkInputs = [ pytest ];
24+
25+ checkPhase = ''
26+ pytest jupyterlab_git/ --ignore=jupyterlab_git/tests/test_handlers.py
27+ '';
28+
29+ pythonImportsCheck = [ "jupyterlab_git" ];
30+
31+ meta = with lib; {
32+ description = "Jupyter lab extension for version control with Git.";
33+ license = with licenses; [ bsd3 ];
34+ homepage = "https://github.com/jupyterlab/jupyterlab-git";
35+ maintainers = with maintainers; [ chiroptical ];
36+ };
37+}