1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 rope,
6 pytestCheckHook,
7 python-lsp-server,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "pylsp-rope";
13 version = "0.1.16";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-1oC2iMYKQCV6iELsgIpuDeFZakelMA8irs/caVVQIKc=";
21 };
22
23 propagatedBuildInputs = [
24 rope
25 python-lsp-server
26 ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "pylsp_rope" ];
31
32 meta = with lib; {
33 description = "Extended refactoring capabilities for Python LSP Server using Rope";
34 homepage = "https://github.com/python-rope/pylsp-rope";
35 license = licenses.mit;
36 maintainers = with maintainers; [ GaetanLepage ];
37 };
38}