pythonPackages.python-language-server: 0.34.1 -> 0.36.2
This commit is contained in:
parent
7ed180f626
commit
63d5e25709
@ -1,6 +1,10 @@
|
|||||||
|
<<<<<<< HEAD
|
||||||
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, pythonOlder, isPy27
|
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, pythonOlder, isPy27
|
||||||
|
=======
|
||||||
|
{ stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder, isPy27
|
||||||
|
>>>>>>> 15db9043242... pythonPackages.python-language-server: 0.34.1 -> 0.36.2
|
||||||
, backports_functools_lru_cache, configparser, futures, future, jedi, pluggy, python-jsonrpc-server, flake8
|
, backports_functools_lru_cache, configparser, futures, future, jedi, pluggy, python-jsonrpc-server, flake8
|
||||||
, pytestCheckHook, mock, pytestcov, coverage, setuptools, ujson
|
, pytestCheckHook, mock, pytestcov, coverage, setuptools, ujson, flaky
|
||||||
, # Allow building a limited set of providers, e.g. ["pycodestyle"].
|
, # Allow building a limited set of providers, e.g. ["pycodestyle"].
|
||||||
providers ? ["*"]
|
providers ? ["*"]
|
||||||
# The following packages are optional and
|
# The following packages are optional and
|
||||||
@ -21,33 +25,33 @@ in
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-language-server";
|
pname = "python-language-server";
|
||||||
version = "0.34.1";
|
version = "0.36.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "palantir";
|
owner = "palantir";
|
||||||
repo = "python-language-server";
|
repo = "python-language-server";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-/tVzaoyUO6+7DSvnf3JxpcTY0rU+hHBu5qlru/ZTpxU=";
|
sha256 = "07x6jr4z20jxn03bxblwc8vk0ywha492cgwfhj7q97nb5cm7kx0q";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
propagatedBuildInputs = [ setuptools jedi pluggy future python-jsonrpc-server flake8 ujson ]
|
||||||
# https://github.com/palantir/python-language-server/pull/851
|
++ stdenv.lib.optional (withProvider "autopep8") autopep8
|
||||||
(fetchpatch {
|
++ stdenv.lib.optional (withProvider "mccabe") mccabe
|
||||||
url = "https://github.com/palantir/python-language-server/commit/f513f3297132492dd41e001d943980e6c4f40809.patch";
|
++ stdenv.lib.optional (withProvider "pycodestyle") pycodestyle
|
||||||
sha256 = "04c9hrb3dzlfchjk4625ipazyfcbq6qq2kj2hg3zf2xsny2jcvi5";
|
++ stdenv.lib.optional (withProvider "pydocstyle") pydocstyle
|
||||||
})
|
++ stdenv.lib.optional (withProvider "pyflakes") pyflakes
|
||||||
];
|
++ stdenv.lib.optional (withProvider "pylint") pylint
|
||||||
|
++ stdenv.lib.optional (withProvider "rope") rope
|
||||||
|
++ stdenv.lib.optional (withProvider "yapf") yapf
|
||||||
|
++ stdenv.lib.optional isPy27 configparser
|
||||||
|
++ stdenv.lib.optionals (pythonOlder "3.2") [ backports_functools_lru_cache futures ];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# https://github.com/palantir/python-jsonrpc-server/issues/36
|
|
||||||
sed -i -e 's!ujson<=!ujson>=!' setup.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
# The tests require all the providers, disable otherwise.
|
# The tests require all the providers, disable otherwise.
|
||||||
doCheck = providers == ["*"];
|
doCheck = providers == ["*"];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook mock pytestcov coverage
|
pytestCheckHook mock pytestcov coverage flaky
|
||||||
# rope is technically a dependency, but we don't add it by default since we
|
# rope is technically a dependency, but we don't add it by default since we
|
||||||
# already have jedi, which is the preferred option
|
# already have jedi, which is the preferred option
|
||||||
rope
|
rope
|
||||||
@ -67,20 +71,9 @@ buildPythonPackage rec {
|
|||||||
"test_matplotlib_completions"
|
"test_matplotlib_completions"
|
||||||
"test_snippet_parsing"
|
"test_snippet_parsing"
|
||||||
"test_numpy_hover"
|
"test_numpy_hover"
|
||||||
|
"test_symbols"
|
||||||
] ++ stdenv.lib.optional isPy27 "test_flake8_lint";
|
] ++ stdenv.lib.optional isPy27 "test_flake8_lint";
|
||||||
|
|
||||||
propagatedBuildInputs = [ setuptools jedi pluggy future python-jsonrpc-server flake8 ujson ]
|
|
||||||
++ stdenv.lib.optional (withProvider "autopep8") autopep8
|
|
||||||
++ stdenv.lib.optional (withProvider "mccabe") mccabe
|
|
||||||
++ stdenv.lib.optional (withProvider "pycodestyle") pycodestyle
|
|
||||||
++ stdenv.lib.optional (withProvider "pydocstyle") pydocstyle
|
|
||||||
++ stdenv.lib.optional (withProvider "pyflakes") pyflakes
|
|
||||||
++ stdenv.lib.optional (withProvider "pylint") pylint
|
|
||||||
++ stdenv.lib.optional (withProvider "rope") rope
|
|
||||||
++ stdenv.lib.optional (withProvider "yapf") yapf
|
|
||||||
++ stdenv.lib.optional isPy27 configparser
|
|
||||||
++ stdenv.lib.optionals (pythonOlder "3.2") [ backports_functools_lru_cache futures ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/palantir/python-language-server";
|
homepage = "https://github.com/palantir/python-language-server";
|
||||||
description = "An implementation of the Language Server Protocol for Python";
|
description = "An implementation of the Language Server Protocol for Python";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user