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";
|
2017-10-25 20:04:35 +02:00
|
|
|
version = "0.11.0";
|
2017-04-20 13:42:20 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 20:04:35 +02:00
|
|
|
sha256 = "f6d5973573e76b1fd2ea75f6dcd6445d02d41ff3af5fc61b275b4e323d1dd396";
|
2017-04-20 13:42:20 +02:00
|
|
|
};
|
|
|
|
|
2017-09-14 19:47:07 -04: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 19:05:56 +01:00
|
|
|
LC_ALL="en_US.UTF-8" py.test test
|
2017-04-20 13:42:20 +02:00
|
|
|
'';
|
|
|
|
|
2017-09-14 19:47:07 -04:00
|
|
|
# tox required for tests: https://github.com/davidhalter/jedi/issues/808
|
|
|
|
doCheck = false;
|
2017-04-20 13:42:20 +02:00
|
|
|
|
2017-09-14 19:47:07 -04: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-14 19:47:07 -04:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ garbas ];
|
2017-04-20 13:42:20 +02:00
|
|
|
};
|
|
|
|
}
|