Merge pull request #129120 from fabaff/fix-pyls-spyder

python3Packages.pyls-spyder: fix build
This commit is contained in:
Jörg Thalheim 2021-07-03 19:27:41 +01:00 committed by GitHub
commit dfdcb86cca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 144 additions and 7 deletions

View file

@ -1,18 +1,29 @@
{ lib, buildPythonPackage, fetchPypi, python-language-server }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, python-lsp-server
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyls-spyder";
version = "0.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "45a321c83f64267d82907492c55199fccabda45bc872dd23bf1efd08edac1b0b";
src = fetchFromGitHub {
owner = "spyder-ide";
repo = pname;
rev = "v${version}";
sha256 = "11ajbsia60d4c9s6m6rbvaqp1d69fcdbq6a98lkzkkzv2b9pdhkk";
};
propagatedBuildInputs = [ python-language-server ];
propagatedBuildInputs = [
python-lsp-server
];
checkInputs = [
pytestCheckHook
];
# no tests
doCheck = false;
pythonImportsCheck = [ "pyls_spyder" ];
meta = with lib; {

View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, ujson
}:
buildPythonPackage rec {
pname = "python-lsp-jsonrpc";
version = "1.0.0";
src = fetchFromGitHub {
owner = "python-lsp";
repo = pname;
rev = "v${version}";
sha256 = "0h4bs8s4axcm0p02v59amz9sq3nr4zhzdgwq7iaw6awl27v1hd0i";
};
propagatedBuildInputs = [
ujson
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov-report html --cov-report term --junitxml=pytest.xml" "" \
--replace "--cov pylsp_jsonrpc --cov test" ""
'';
pythonImportsCheck = [ "pylsp_jsonrpc" ];
meta = with lib; {
description = "Python server implementation of the JSON RPC 2.0 protocol.";
homepage = "https://github.com/python-lsp/python-lsp-jsonrpc";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -0,0 +1,81 @@
{ lib
, autopep8
, buildPythonPackage
, fetchFromGitHub
, flake8
, flaky
, jedi
, matplotlib
, mccabe
, numpy
, pandas
, pluggy
, pycodestyle
, pydocstyle
, pyflakes
, pylint
, pyqt5
, pytestCheckHook
, python-lsp-jsonrpc
, pythonOlder
, rope
, ujson
, yapf
}:
buildPythonPackage rec {
pname = "python-lsp-server";
version = "1.1.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "python-lsp";
repo = pname;
rev = "v${version}";
sha256 = "1akdpfnylqg2mcwpkqmdwcg6j6hab23slp5rfjfidhphig2f2yjv";
};
propagatedBuildInputs = [
autopep8
flake8
jedi
mccabe
pluggy
pycodestyle
pydocstyle
pyflakes
pylint
python-lsp-jsonrpc
rope
ujson
yapf
];
checkInputs = [
flaky
matplotlib
numpy
pandas
pyqt5
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov-report html --cov-report term --junitxml=pytest.xml" "" \
--replace "--cov pylsp --cov test" ""
'';
preCheck = ''
export HOME=$(mktemp -d);
'';
pythonImportsCheck = [ "pylsp" ];
meta = with lib; {
description = "Python implementation of the Language Server Protocol";
homepage = "https://github.com/python-lsp/python-lsp-server";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -6996,6 +6996,10 @@ in {
python-louvain = callPackage ../development/python-modules/python-louvain { };
python-lsp-jsonrpc = callPackage ../development/python-modules/python-lsp-jsonrpc { };
python-lsp-server = callPackage ../development/python-modules/python-lsp-server { };
python-ly = callPackage ../development/python-modules/python-ly { };
python-lz4 = callPackage ../development/python-modules/python-lz4 { };