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