mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
python311Packages.pylsp-rope: clean package
This commit is contained in:
parent
4a4c5ac18c
commit
cd01f0fd98
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user