git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #162023 from doronbehar/pkg/jupyterlsp
commit2ca7e57c453148b0377787ec5ab97afb4e26a24e authorDoron Behar <doron.behar@gmail.com> dateTue 1 Mar 2022, 14:36 (5 years ago) parente3c78eca4c46b5
3 files changed+69
pkgs/development/python-modules/jupyter-lsp/default.nix+32 pkgs/development/python-modules/jupyterlab-lsp/default.nix+33 pkgs/top-level/python-packages.nix+4
pkgs/development/python-modules/jupyter-lsp/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv
2+, lib
3+, buildPythonPackage
4+, fetchPypi
5+, jupyter_server
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "jupyter-lsp";
10+ version = "1.5.1";
11+
12+ src = fetchPypi {
13+ inherit pname version;
14+ sha256 = "sha256-dRq9NUE76ZpDMfNZewk0Gtx1VYntMgkawvaG2z1hJn4=";
15+ };
16+
17+ propagatedBuildInputs = [
18+ jupyter_server
19+ ];
20+ # tests require network
21+ doCheck = false;
22+ pythonImportsCheck = [ "jupyter_lsp" ];
23+
24+ meta = with lib; {
25+ description = "Multi-Language Server WebSocket proxy for your Jupyter notebook or lab server";
26+ homepage = "https://pypi.org/project/jupyter-lsp";
27+ license = licenses.bsd3;
28+ platforms = platforms.all;
29+ maintainers = with maintainers; [ doronbehar ];
30+ };
31+}
32+
pkgs/development/python-modules/jupyterlab-lsp/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv
2+, lib
3+, buildPythonPackage
4+, fetchPypi
5+, jupyterlab
6+, jupyter-lsp
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "jupyterlab-lsp";
11+ version = "3.10.0";
12+
13+ src = fetchPypi {
14+ inherit pname version;
15+ sha256 = "sha256-8/ZGTIwpFuPiYVGZZLF+1Gc8aJcWc3BirtXdahYKwt8=";
16+ };
17+
18+ propagatedBuildInputs = [
19+ jupyterlab
20+ jupyter-lsp
21+ ];
22+ # No tests
23+ doCheck = false;
24+ pythonImportsCheck = [ "jupyterlab_lsp" ];
25+
26+ meta = with lib; {
27+ description = "Language Server Protocol integration for Jupyter(Lab)";
28+ homepage = "https://github.com/jupyter-lsp/jupyterlab-lsp";
29+ license = licenses.bsd3;
30+ platforms = platforms.all;
31+ maintainers = with maintainers; [ doronbehar ];
32+ };
33+}
pkgs/top-level/python-packages.nix+4
@@ -4342,6 +4342,8 @@ in {
43424342
43434343 jupyter_core = callPackage ../development/python-modules/jupyter_core { };
43444344
4345+ jupyter-lsp = callPackage ../development/python-modules/jupyter-lsp { };
4346+
43454347 jupyter_server = callPackage ../development/python-modules/jupyter_server { };
43464348
43474349 jupyterhub = callPackage ../development/python-modules/jupyterhub { };
@@ -4364,6 +4366,8 @@ in {
43644366
43654367 jupyterlab-widgets = callPackage ../development/python-modules/jupyterlab-widgets { };
43664368
4369+ jupyterlab-lsp = callPackage ../development/python-modules/jupyterlab-lsp { };
4370+
43674371 jupyter-packaging = callPackage ../development/python-modules/jupyter-packaging { };
43684372
43694373 jupyter-repo2docker = callPackage ../development/python-modules/jupyter-repo2docker {