mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
python3.pkgs.python-lsp-server: relax jedi dependency constraint
This commit is contained in:
parent
dfe898c801
commit
fbfe6f5f12
@ -4,6 +4,7 @@
|
||||
, buildPythonPackage
|
||||
, docstring-to-markdown
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, flake8
|
||||
, flaky
|
||||
, jedi
|
||||
@ -28,6 +29,7 @@
|
||||
, ujson
|
||||
, websockets
|
||||
, whatthepatch
|
||||
, wheel
|
||||
, yapf
|
||||
}:
|
||||
|
||||
@ -45,7 +47,14 @@ buildPythonPackage rec {
|
||||
hash = "sha256-plciPUROFileVULGBZpwUTkW2NZVHy4Nuf4+fSjd8nM=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
patches = [
|
||||
# https://github.com/python-lsp/python-lsp-server/pull/416
|
||||
(fetchpatch {
|
||||
name = "bump-jedi-upper-pin-to-0.20.patch";
|
||||
url = "https://github.com/python-lsp/python-lsp-server/commit/f33a93afc8c3a0f16751f9e1f6601a37967fd7df.patch";
|
||||
hash = "sha256-lBpzXxjlQp2ig0z2DRJw+jQZ5eRLIOJYjGrzfgvknDA=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
@ -53,6 +62,8 @@ buildPythonPackage rec {
|
||||
--replace "--cov pylsp --cov test" ""
|
||||
'';
|
||||
|
||||
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"autopep8"
|
||||
"flake8"
|
||||
@ -65,6 +76,7 @@ buildPythonPackage rec {
|
||||
nativeBuildInputs = [
|
||||
pythonRelaxDepsHook
|
||||
setuptools-scm
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
Loading…
Reference in New Issue
Block a user