pythonPackages.python-language-server: fix python2.7 build

This commit is contained in:
Daiderd Jordan 2019-07-01 23:15:02 +02:00
parent 3ddbe024f7
commit 712816708e
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -1,5 +1,5 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder, isPy27
, configparser, futures, future, jedi, pluggy, python-jsonrpc-server
, backports_functools_lru_cache, configparser, futures, future, jedi, pluggy, python-jsonrpc-server
, pytest, mock, pytestcov, coverage
, # Allow building a limited set of providers, e.g. ["pycodestyle"].
providers ? ["*"]
@ -54,7 +54,7 @@ buildPythonPackage rec {
++ stdenv.lib.optional (withProvider "rope") rope
++ stdenv.lib.optional (withProvider "yapf") yapf
++ stdenv.lib.optional isPy27 configparser
++ stdenv.lib.optional (pythonOlder "3.2") futures;
++ stdenv.lib.optionals (pythonOlder "3.2") [ backports_functools_lru_cache futures ];
meta = with stdenv.lib; {
homepage = https://github.com/palantir/python-language-server;