2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-07-27 06:49:29 +00:00
|
|
|
pythonOlder,
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
|
|
|
# build-system
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
2024-06-05 15:53:02 +00:00
|
|
|
rope,
|
|
|
|
python-lsp-server,
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
# checks
|
|
|
|
pytestCheckHook,
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylsp-rope";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.1.16";
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-rope";
|
|
|
|
repo = "pylsp-rope";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Mr+mWRvOXoy7+SosMae80o0V1jBMn1dEoGmaR/BGHrc=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2023-05-24 13:37:59 +00:00
|
|
|
rope
|
|
|
|
python-lsp-server
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pylsp_rope" ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
meta = {
|
2023-05-24 13:37:59 +00:00
|
|
|
description = "Extended refactoring capabilities for Python LSP Server using Rope";
|
|
|
|
homepage = "https://github.com/python-rope/pylsp-rope";
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://github.com/python-rope/pylsp-rope/releases/tag/${version}";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|