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