python311Packages.pylsp-rope: clean package

This commit is contained in:
Gaetan Lepage 2024-07-18 16:20:39 +02:00
parent 4a4c5ac18c
commit cd01f0fd98

View File

@ -1,23 +1,28 @@
{
lib,
buildPythonPackage,
fetchPypi,
rope,
pytestCheckHook,
python-lsp-server,
pythonOlder,
fetchFromGitHub,
rope,
python-lsp-server,
# checks
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pylsp-rope";
version = "0.1.16";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-1oC2iMYKQCV6iELsgIpuDeFZakelMA8irs/caVVQIKc=";
src = fetchFromGitHub {
owner = "python-rope";
repo = "pylsp-rope";
rev = "refs/tags/${version}";
hash = "sha256-Mr+mWRvOXoy7+SosMae80o0V1jBMn1dEoGmaR/BGHrc=";
};
propagatedBuildInputs = [
@ -25,14 +30,15 @@ buildPythonPackage rec {
python-lsp-server
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pylsp_rope" ];
meta = with lib; {
nativeCheckInputs = [ pytestCheckHook ];
meta = {
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 ];
changelog = "https://github.com/python-rope/pylsp-rope/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}