Merge pull request #232167 from GaetanLepage/pylsp

Add python packages for pylsp

authored by

Weijia Wang and committed by
GitHub
83249f41 22555477

+129
+46
pkgs/development/python-modules/memestra/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , beniget 5 + , frilouz 6 + , gast 7 + , nbconvert 8 + , nbformat 9 + , pythonOlder 10 + , pyyaml 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "memestra"; 15 + version = "0.2.1"; 16 + 17 + disabled = pythonOlder "3.4"; 18 + 19 + src = fetchPypi { 20 + inherit pname version; 21 + hash = "sha256-6shwf9BoDfZMy0itP8esNP4ov6fw6LJpO3Y5ZahwDZw="; 22 + }; 23 + 24 + propagatedBuildInputs = [ 25 + gast 26 + beniget 27 + frilouz 28 + nbconvert 29 + nbformat 30 + pyyaml 31 + ]; 32 + 33 + # Tests are not detected and so the checkPhase fails 34 + doCheck = false; 35 + 36 + pythonImportsCheck = [ 37 + "memestra" 38 + ]; 39 + 40 + meta = with lib; { 41 + description = "A linter that tracks reference to deprecated functions."; 42 + homepage = "https://github.com/QuantStack/memestra"; 43 + license = licenses.bsd3; 44 + maintainers = with maintainers; [ GaetanLepage ]; 45 + }; 46 + }
+37
pkgs/development/python-modules/pyls-memestra/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , deprecated 5 + , memestra 6 + , python-lsp-server 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "pyls-memestra"; 11 + version = "0.0.16"; 12 + 13 + src = fetchPypi { 14 + inherit pname version; 15 + hash = "sha256-zMVDd2uB4znw38z3yb0Nt7qQH5dGHTbQBIZO/qo1/t8="; 16 + }; 17 + 18 + propagatedBuildInputs = [ 19 + deprecated 20 + memestra 21 + python-lsp-server 22 + ]; 23 + 24 + # Tests fail because they rely on writting to read-only files 25 + doCheck = false; 26 + 27 + pythonImportsCheck = [ 28 + "pyls_memestra" 29 + ]; 30 + 31 + meta = with lib; { 32 + description = "Memestra plugin for the Python Language Server"; 33 + homepage = "https://github.com/QuantStack/pyls-memestra"; 34 + license = licenses.bsd3; 35 + maintainers = with maintainers; [ GaetanLepage ]; 36 + }; 37 + }
+40
pkgs/development/python-modules/pylsp-rope/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , rope 5 + , pytestCheckHook 6 + , python-lsp-server 7 + , pythonOlder 8 + }: 9 + 10 + buildPythonPackage rec { 11 + pname = "pylsp-rope"; 12 + version = "0.1.11"; 13 + 14 + disabled = pythonOlder "3.7"; 15 + 16 + src = fetchPypi { 17 + inherit pname version; 18 + hash = "sha256-SKrfmT2vpej8oRCLSlQxMUz4C8eM/91WQA6tnEB1U74="; 19 + }; 20 + 21 + propagatedBuildInputs = [ 22 + rope 23 + python-lsp-server 24 + ]; 25 + 26 + nativeCheckInputs = [ 27 + pytestCheckHook 28 + ]; 29 + 30 + pythonImportsCheck = [ 31 + "pylsp_rope" 32 + ]; 33 + 34 + meta = with lib; { 35 + description = "Extended refactoring capabilities for Python LSP Server using Rope"; 36 + homepage = "https://github.com/python-rope/pylsp-rope"; 37 + license = licenses.mit; 38 + maintainers = with maintainers; [ GaetanLepage ]; 39 + }; 40 + }
+6
pkgs/top-level/python-packages.nix
··· 6109 6109 6110 6110 meld3 = callPackage ../development/python-modules/meld3 { }; 6111 6111 6112 + memestra = callPackage ../development/python-modules/memestra { }; 6113 + 6112 6114 memory-allocator = callPackage ../development/python-modules/memory-allocator { }; 6113 6115 6114 6116 memory_profiler = callPackage ../development/python-modules/memory_profiler { }; ··· 8710 8712 8711 8713 pyls-isort = callPackage ../development/python-modules/pyls-isort { }; 8712 8714 8715 + pyls-memestra = callPackage ../development/python-modules/pyls-memestra { }; 8716 + 8713 8717 pyls-spyder = callPackage ../development/python-modules/pyls-spyder { }; 8714 8718 8715 8719 pylsp-mypy = callPackage ../development/python-modules/pylsp-mypy { }; 8720 + 8721 + pylsp-rope = callPackage ../development/python-modules/pylsp-rope { }; 8716 8722 8717 8723 pylpsd = callPackage ../development/python-modules/pylpsd { }; 8718 8724