mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
41 lines
914 B
Nix
41 lines
914 B
Nix
{ lib, stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, notebook
|
|
, nbdime
|
|
, git
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jupyterlab_git";
|
|
version = "0.30.1";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "f44a33cf59b424e0b5ff984b18eae33e45dab1ef9dc1901b1dd23f9adff15df2";
|
|
};
|
|
|
|
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 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 ];
|
|
};
|
|
}
|