1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 rope, 11 python-lsp-server, 12 13 # tests 14 pytestCheckHook, 15}: 16 17buildPythonPackage rec { 18 pname = "pylsp-rope"; 19 version = "0.1.17"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "python-rope"; 24 repo = "pylsp-rope"; 25 tag = version; 26 hash = "sha256-gEmSZQZ2rtSljN8USsUiqsP2cr54k6kwvsz8cjam9dU="; 27 }; 28 29 build-system = [ 30 setuptools 31 ]; 32 33 dependencies = [ 34 rope 35 python-lsp-server 36 ]; 37 38 pythonImportsCheck = [ "pylsp_rope" ]; 39 40 nativeCheckInputs = [ pytestCheckHook ]; 41 42 meta = { 43 description = "Extended refactoring capabilities for Python LSP Server using Rope"; 44 homepage = "https://github.com/python-rope/pylsp-rope"; 45 changelog = "https://github.com/python-rope/pylsp-rope/releases/tag/${version}"; 46 license = lib.licenses.mit; 47 maintainers = with lib.maintainers; [ GaetanLepage ]; 48 }; 49}