@ -20,6 +20,7 @@
, pythonOlder
, rope
, setuptools
, setuptools-scm
, stdenv
, ujson
, yapf
@ -36,7 +37,8 @@
buildPythonPackage rec {
pname = " p y t h o n - l s p - s e r v e r " ;
version = " 1 . 3 . 3 " ;
version = " 1 . 4 . 1 " ;
format = " p y p r o j e c t " ;
disabled = pythonOlder " 3 . 7 " ;
@ -44,13 +46,18 @@ buildPythonPackage rec {
owner = " p y t h o n - l s p " ;
repo = pname ;
rev = " v ${ version } " ;
sha256 = " s h a 2 5 6 - F 8 f 9 N A j P W k m 0 1 D / K w F H 0 o A 6 n Q 3 E F 4 Z V C C c k Z T L 4 A 3 5 Y = " ;
sha256 = " s h a 2 5 6 - r E f j x H w 2 N I V I a 8 R e p x L P i X k R F h c G W L z m 6 w 4 3 n 6 0 z k F E = " ;
} ;
postPatch = ''
substituteInPlace setup . cfg \
- - replace " - - c o v - r e p o r t h t m l - - c o v - r e p o r t t e r m - - j u n i t x m l = p y t e s t . x m l " " " \
- - replace " - - c o v p y l s p - - c o v t e s t " " "
- - replace " - - c o v p y l s p - - c o v t e s t " " " \
- - replace " m c c a b e > = 0 . 6 . 0 , < 0 . 7 . 0 " " m c c a b e "
'' ;
preBuild = ''
export SETUPTOOLS_SCM_PRETEND_VERSION = $ { version }
'' ;
propagatedBuildInputs = [
@ -58,6 +65,7 @@ buildPythonPackage rec {
pluggy
python-lsp-jsonrpc
setuptools
setuptools-scm
ujson
] ++ lib . optional withAutopep8 autopep8
++ lib . optional withFlake8 flake8
@ -79,10 +87,7 @@ buildPythonPackage rec {
# pyqt5 is broken on aarch64-darwin
++ lib . optionals ( ! stdenv . isDarwin || ! stdenv . isAarch64 ) [ pyqt5 ] ;
disabledTests = [
# pytlint output changed
" t e s t _ l i n t _ f r e e _ p y l i n t "
] ++ lib . optional ( ! withPycodestyle ) " t e s t _ w o r k s p a c e _ l o a d s _ p y c o d e s t y l e _ c o n f i g "
disabledTests = lib . optional ( ! withPycodestyle ) " t e s t _ w o r k s p a c e _ l o a d s _ p y c o d e s t y l e _ c o n f i g "
# pyqt5 is broken on aarch64-darwin
++ lib . optional ( stdenv . isDarwin && stdenv . isAarch64 ) " t e s t _ p y q t _ c o m p l e t i o n " ;