Merge pull request #209865 from fabaff/python-lsp-server-bump

python310Packages.python-lsp-server: 1.6.0 -> 1.7.0, python310Packages.rope: 0.18.0 -> 1.6.0
This commit is contained in:
Fabian Affolter
2023-01-10 00:27:30 +01:00
committed by GitHub
6 changed files with 131 additions and 29 deletions
@@ -32,7 +32,7 @@
buildPythonPackage rec {
pname = "python-lsp-server";
version = "1.6.0";
version = "1.7.0";
format = "pyproject";
disabled = pythonOlder "3.7";
@@ -41,7 +41,7 @@ buildPythonPackage rec {
owner = "python-lsp";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-1LV8FcwQqUg+FIkrorBYlxMl4F1PkrrOWjD5M0JSp3Q=";
hash = "sha256-9cyzJxyCris7FsVni5IZCCL6IAcsN8tMakNoKPeWv7s=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
@@ -51,10 +51,10 @@ buildPythonPackage rec {
--replace "--cov-report html --cov-report term --junitxml=pytest.xml" "" \
--replace "--cov pylsp --cov test" "" \
--replace "autopep8>=1.6.0,<1.7.0" "autopep8" \
--replace "flake8>=5.0.0,<5.1.0" "flake8" \
--replace "flake8>=5.0.0,<7" "flake8" \
--replace "mccabe>=0.7.0,<0.8.0" "mccabe" \
--replace "pycodestyle>=2.9.0,<2.10.0" "pycodestyle" \
--replace "pyflakes>=2.5.0,<2.6.0" "pyflakes"
--replace "pycodestyle>=2.9.0,<2.11.0" "pycodestyle" \
--replace "pyflakes>=2.5.0,<3.1.0" "pyflakes"
'';
nativeBuildInputs = [
@@ -150,6 +150,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python implementation of the Language Server Protocol";
homepage = "https://github.com/python-lsp/python-lsp-server";
changelog = "https://github.com/python-lsp/python-lsp-server/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
@@ -0,0 +1,79 @@
{ lib
, buildPythonPackage
, docutils
, fetchFromGitHub
, packaging
, pdm-pep517
, platformdirs
, pydantic
, pytest-timeout
, pytestCheckHook
, pythonOlder
, sphinx
, tabulate
, tomli
}:
buildPythonPackage rec {
pname = "pytoolconfig";
version = "1.2.5";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "bagel897";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-b7er/IgXr2j9dSnI87669BXWA5CXNTzwa1DTpl8PBZ4=";
};
postPatch = ''
# License file name doesn't match
substituteInPlace pyproject.toml \
--replace "license = { file = 'LGPL-3.0' }" "" \
--replace 'dynamic = ["version"]' 'version = "${version}"' \
--replace "packaging>=22.0" "packaging"
'';
nativeBuildInputs = [
pdm-pep517
];
propagatedBuildInputs = [
packaging
] ++ lib.optionals (pythonOlder "3.11") [
tomli
];
passthru.optional-dependencies = {
validation = [
pydantic
];
global = [
platformdirs
];
doc = [
sphinx
tabulate
];
};
checkInputs = [
docutils
pytestCheckHook
] ++ passthru.optional-dependencies.global
++ passthru.optional-dependencies.doc;
pythonImportsCheck = [
"pytoolconfig"
];
meta = with lib; {
description = "Module for tool configuration";
homepage = "https://github.com/bagel897/pytoolconfig";
changelog = "https://github.com/bagel897/pytoolconfig/releases/tag/v${version}";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ fab ];
};
}
@@ -1,33 +1,55 @@
{ lib, buildPythonPackage, fetchPypi, fetchpatch, nose }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-timeout
, pytestCheckHook
, pythonOlder
, setuptools
, pytoolconfig
}:
buildPythonPackage rec {
pname = "rope";
version = "0.18.0";
version = "1.6.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "786b5c38c530d4846aa68a42604f61b4e69a493390e3ca11b88df0fbfdc3ed04";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-rope";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-avNCti288dY9pl5AVTmUzZU/vb6WDkXEtELNlEi6L/o=";
};
patches = [
# Python 3.9 ast changes
(fetchpatch {
url = "https://github.com/python-rope/rope/pull/333.patch";
excludes = [ ".github/workflows/main.yml" ];
sha256 = "1gq7n1zs18ndmv0p8jg1h5pawabi1m9m9z2w5hgidvqmpmcziky0";
})
nativeBuildInputs = [
setuptools
];
checkInputs = [ nose ];
checkPhase = ''
# tracked upstream here https://github.com/python-rope/rope/issues/247
NOSE_IGNORE_FILES=type_hinting_test.py nosetests ropetest
'';
propagatedBuildInputs = [
pytoolconfig
]++ pytoolconfig.optional-dependencies.global;
checkInputs = [
pytest-timeout
pytestCheckHook
];
pythonImportsCheck = [
"rope"
];
disabledTests = [
"test_search_submodule"
"test_get_package_source_pytest"
"test_get_modname_folder"
];
meta = with lib; {
description = "Python refactoring library";
homepage = "https://github.com/python-rope/rope";
maintainers = with maintainers; [ goibhniu ];
changelog = "https://github.com/python-rope/rope/blob/${version}/CHANGELOG.md";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ goibhniu ];
};
}
@@ -14,14 +14,14 @@
buildPythonPackage rec {
pname = "spyder-kernels";
version = "2.4.0";
version = "2.4.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-O9MvvjChUKucztvVvrbd04veHZqHeNpS9+30ILv7jlE=";
hash = "sha256-eD2N+9cVzZdyjpE5FnebN8+OllZjVevaz+NBHSvrR5Y=";
};
propagatedBuildInputs = [
@@ -46,14 +46,14 @@
buildPythonPackage rec {
pname = "spyder";
version = "5.4.0";
version = "5.4.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-nZ+rw5qALSdu+nbaAtGA7PLW6XjcjeZvuPd4a5WtZkw=";
hash = "sha256-kQBOYRXhjz+OQk7Vlxb/UKiDi92mA8ialsFQ+QzqhlE=";
};
nativeBuildInputs = [
+2 -2
View File
@@ -5147,8 +5147,6 @@ self: super: with self; {
lcov_cobertura = callPackage ../development/python-modules/lcov_cobertura { };
ld2410-ble = callPackage ../development/python-modules/ld2410-ble { };
ldap3 = callPackage ../development/python-modules/ldap3 { };
ldapdomaindump = callPackage ../development/python-modules/ldapdomaindump { };
@@ -9367,6 +9365,8 @@ self: super: with self; {
pytomlpp = callPackage ../development/python-modules/pytomlpp { };
pytoolconfig = callPackage ../development/python-modules/pytoolconfig { };
pytools = callPackage ../development/python-modules/pytools { };
pytorch-lightning = callPackage ../development/python-modules/pytorch-lightning { };