2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, fetchPypi, pytest, glibcLocales, tox, pytestcov, parso }:
|
2017-04-20 12:42:20 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jedi";
|
2020-09-05 10:45:00 +01:00
|
|
|
# switch back to stable version on the next release.
|
|
|
|
# current stable is incompatible with parso
|
|
|
|
version = "2020-08-06";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "davidhalter";
|
|
|
|
repo = "jedi";
|
|
|
|
rev = "216f976fd5cab7a460e5d287e853d11759251e52";
|
|
|
|
sha256 = "1kb2ajzigadl95pnwglg8fxz9cvpg9hx30hqqj91jkgrc7djdldj";
|
|
|
|
fetchSubmodules = true;
|
2017-04-20 12:42:20 +01:00
|
|
|
};
|
|
|
|
|
2017-09-15 00:47:07 +01:00
|
|
|
checkInputs = [ pytest glibcLocales tox pytestcov ];
|
2017-04-20 12:42:20 +01:00
|
|
|
|
2017-10-25 19:04:35 +01:00
|
|
|
propagatedBuildInputs = [ parso ];
|
|
|
|
|
2017-04-20 12:42:20 +01:00
|
|
|
checkPhase = ''
|
2017-09-01 19:05:56 +01:00
|
|
|
LC_ALL="en_US.UTF-8" py.test test
|
2017-04-20 12:42:20 +01:00
|
|
|
'';
|
|
|
|
|
2017-09-15 00:47:07 +01:00
|
|
|
# tox required for tests: https://github.com/davidhalter/jedi/issues/808
|
|
|
|
doCheck = false;
|
2017-04-20 12:42:20 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/davidhalter/jedi";
|
2017-04-20 12:42:20 +01:00
|
|
|
description = "An autocompletion tool for Python that can be used for text editors";
|
2017-09-15 00:47:07 +01:00
|
|
|
license = licenses.lgpl3Plus;
|
2019-07-03 10:27:39 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-04-20 12:42:20 +01:00
|
|
|
};
|
|
|
|
}
|