2017-10-25 11:04:35 -07:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pytest, glibcLocales, tox, pytestcov, parso }:
|
2017-04-20 04:42:20 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jedi";
|
2019-12-22 18:15:56 -08:00
|
|
|
version = "0.15.2";
|
2017-04-20 04:42:20 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-22 18:15:56 -08:00
|
|
|
sha256 = "e909527104a903606dd63bea6e8e888833f0ef087057829b89a18364a856f807";
|
2017-04-20 04:42:20 -07:00
|
|
|
};
|
|
|
|
|
2017-11-24 23:46:51 -08:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt --replace "parso==0.1.0" "parso"
|
|
|
|
'';
|
|
|
|
|
2017-09-14 16:47:07 -07:00
|
|
|
checkInputs = [ pytest glibcLocales tox pytestcov ];
|
2017-04-20 04:42:20 -07:00
|
|
|
|
2017-10-25 11:04:35 -07:00
|
|
|
propagatedBuildInputs = [ parso ];
|
|
|
|
|
2017-04-20 04:42:20 -07:00
|
|
|
checkPhase = ''
|
2017-09-01 11:05:56 -07:00
|
|
|
LC_ALL="en_US.UTF-8" py.test test
|
2017-04-20 04:42:20 -07:00
|
|
|
'';
|
|
|
|
|
2017-09-14 16:47:07 -07:00
|
|
|
# tox required for tests: https://github.com/davidhalter/jedi/issues/808
|
|
|
|
doCheck = false;
|
2017-04-20 04:42:20 -07:00
|
|
|
|
2017-09-14 16:47:07 -07:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/davidhalter/jedi";
|
2017-04-20 04:42:20 -07:00
|
|
|
description = "An autocompletion tool for Python that can be used for text editors";
|
2017-09-14 16:47:07 -07:00
|
|
|
license = licenses.lgpl3Plus;
|
2019-07-03 02:27:39 -07:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-04-20 04:42:20 -07:00
|
|
|
};
|
|
|
|
}
|