diff --git a/pkgs/development/python-modules/pylsp-rope/default.nix b/pkgs/development/python-modules/pylsp-rope/default.nix new file mode 100644 index 000000000000..1199f40eaeec --- /dev/null +++ b/pkgs/development/python-modules/pylsp-rope/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildPythonPackage +, fetchPypi +, rope +, pytestCheckHook +, python-lsp-server +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pylsp-rope"; + version = "0.1.11"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-SKrfmT2vpej8oRCLSlQxMUz4C8eM/91WQA6tnEB1U74="; + }; + + propagatedBuildInputs = [ + rope + python-lsp-server + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "pylsp_rope" + ]; + + meta = with lib; { + description = "Extended refactoring capabilities for Python LSP Server using Rope"; + homepage = "https://github.com/python-rope/pylsp-rope"; + license = licenses.mit; + maintainers = with maintainers; [ GaetanLepage ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 348b9e913e3d..75882933ed29 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8712,6 +8712,8 @@ self: super: with self; { pylsp-mypy = callPackage ../development/python-modules/pylsp-mypy { }; + pylsp-rope = callPackage ../development/python-modules/pylsp-rope { }; + pylpsd = callPackage ../development/python-modules/pylpsd { }; pylti = callPackage ../development/python-modules/pylti { };