python3Packages.jedi: 2020-08-06 -> 0.18.0
Migrate to pytestCheckHook, sadly some compatibility issues with pytest6 exist.
This commit is contained in:
parent
585947fc19
commit
3157f9a404
@ -1,29 +1,45 @@
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, fetchPypi, pytest, glibcLocales, tox, pytest-cov, parso }:
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, fetchPypi
|
||||
, colorama
|
||||
, django
|
||||
, docopt
|
||||
, pytestCheckHook
|
||||
, parso
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jedi";
|
||||
# switch back to stable version on the next release.
|
||||
# current stable is incompatible with parso
|
||||
version = "2020-08-06";
|
||||
version = "0.18.0";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "davidhalter";
|
||||
repo = "jedi";
|
||||
rev = "216f976fd5cab7a460e5d287e853d11759251e52";
|
||||
sha256 = "1kb2ajzigadl95pnwglg8fxz9cvpg9hx30hqqj91jkgrc7djdldj";
|
||||
rev = "v${version}";
|
||||
sha256 = "0d8zdj56hyxbsvvrid6r3nprm0ygxaad6zpsbhbj6k7p3dcx7acw";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
checkInputs = [ pytest glibcLocales tox pytest-cov ];
|
||||
|
||||
propagatedBuildInputs = [ parso ];
|
||||
|
||||
checkPhase = ''
|
||||
LC_ALL="en_US.UTF-8" py.test test
|
||||
checkInputs = [
|
||||
colorama
|
||||
django
|
||||
docopt
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
# tox required for tests: https://github.com/davidhalter/jedi/issues/808
|
||||
doCheck = false;
|
||||
disabledTests = [
|
||||
# Assertions mismatches with pytest>=6.0
|
||||
"test_completion"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/davidhalter/jedi";
|
||||
|
Loading…
Reference in New Issue
Block a user