nixpkgs-suyu/pkgs/development/python-modules/nbclassic/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
977 B
Nix
Raw Normal View History

2020-12-29 08:58:30 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
2022-01-21 00:03:51 +01:00
, python
2020-12-29 08:58:30 +01:00
, notebook
, pythonOlder
, jupyter_server
, pytestCheckHook
, pytest-tornasync
}:
buildPythonPackage rec {
pname = "nbclassic";
version = "0.3.5";
disabled = pythonOlder "3.6";
2020-12-29 08:58:30 +01:00
# tests only on github
src = fetchFromGitHub {
owner = "jupyterlab";
repo = pname;
2022-01-20 23:47:16 +01:00
rev = "v${version}";
sha256 = "1d0x7nwsaw5qjw4iaylc2sxlpiq3hlg9sy3i2nh7sn3wckwl76lc";
2020-12-29 08:58:30 +01:00
};
propagatedBuildInputs = [ jupyter_server notebook ];
2022-01-21 00:03:51 +01:00
preCheck = ''
cd nbclassic
mv conftest.py tests
cd tests
export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
'';
2020-12-29 08:58:30 +01:00
checkInputs = [
pytestCheckHook
pytest-tornasync
];
__darwinAllowLocalNetworking = true;
2020-12-29 08:58:30 +01:00
meta = with lib; {
description = "Jupyter lab environment notebook server extension.";
license = with licenses; [ bsd3 ];
homepage = "https://github.com/jupyterlab/nbclassic";
maintainers = [ maintainers.elohmeier ];
};
}