Browse Source

python3.pkgs.python-language-server: fix jedi integration

recent jedi/parso versions uses Path instead of str.

(cherry picked from commit b99096b1f0)
wip-nanopi-m4v2
Jörg Thalheim 6 years ago
committed by Jon
parent
commit
39dfaa4da7
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      pkgs/development/python-modules/python-language-server/default.nix

+ 9
- 1
pkgs/development/python-modules/python-language-server/default.nix View File

@@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder, isPy27
{ stdenv, buildPythonPackage, fetchFromGitHub, fetchpatch, pythonOlder, isPy27
, backports_functools_lru_cache, configparser, futures, future, jedi, pluggy, python-jsonrpc-server, flake8
, pytestCheckHook, mock, pytestcov, coverage, setuptools, ujson
, # Allow building a limited set of providers, e.g. ["pycodestyle"].
@@ -30,6 +30,14 @@ buildPythonPackage rec {
sha256 = "sha256-/tVzaoyUO6+7DSvnf3JxpcTY0rU+hHBu5qlru/ZTpxU=";
};

patches = [
# https://github.com/palantir/python-language-server/pull/851
(fetchpatch {
url = "https://github.com/palantir/python-language-server/commit/f513f3297132492dd41e001d943980e6c4f40809.patch";
sha256 = "04c9hrb3dzlfchjk4625ipazyfcbq6qq2kj2hg3zf2xsny2jcvi5";
})
];

postPatch = ''
# https://github.com/palantir/python-jsonrpc-server/issues/36
sed -i -e 's!ujson<=!ujson>=!' setup.py


Loading…
Cancel
Save