1{ lib, stdenv
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, notebook
6, nbdime
7, git
8, pytest
9}:
10
11buildPythonPackage rec {
12 pname = "jupyterlab_git";
13 version = "0.23.3";
14 disabled = pythonOlder "3.5";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "20a4954d8d1b1eb6f9111cd15d6a598bd7ff72b08797cf5e86c5a55827c85a1d";
19 };
20
21 propagatedBuildInputs = [ notebook nbdime git ];
22
23 # all Tests on darwin fail or are skipped due to sandbox
24 doCheck = !stdenv.isDarwin;
25
26 checkInputs = [ pytest ];
27
28 checkPhase = ''
29 pytest jupyterlab_git/ --ignore=jupyterlab_git/tests/test_handlers.py
30 '';
31
32 pythonImportsCheck = [ "jupyterlab_git" ];
33
34 meta = with lib; {
35 description = "Jupyter lab extension for version control with Git.";
36 license = with licenses; [ bsd3 ];
37 homepage = "https://github.com/jupyterlab/jupyterlab-git";
38 maintainers = with maintainers; [ chiroptical ];
39 };
40}